Skip to content

Commit 47b68fb

Browse files
committed
update define's comment
1 parent 884ce9f commit 47b68fb

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

builtinfunc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package gotype
22

33
//go:generate stringer -type builtinfunc builtinfunc.go
4+
45
type builtinfunc uint8
56

67
// Built-in function results

chandir.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package gotype
55
// ChanDir represents a channel type's direction.
66
type ChanDir int
77

8+
// Define channel direction
89
const (
910
RecvDir ChanDir = 1 << iota // chan<-
1011
SendDir // <-chan

kind.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ package gotype
66
// The zero Kind is not a valid kind.
77
type Kind uint8
88

9+
// Define kind
910
const (
1011
Invalid Kind = iota
1112

1213
// Built-in base type
14+
1315
predeclaredTypesBeg
1416
Bool
1517
Int
@@ -34,6 +36,7 @@ const (
3436
predeclaredTypesEnd
3537

3638
// Built-in combination
39+
3740
Array
3841
Chan
3942
Func
@@ -44,6 +47,7 @@ const (
4447
Struct
4548

4649
// Special is different from other Kinds
50+
4751
Field // a Struct Field
4852
Scope // package or func body
4953
Declaration // a top-level function, variable, or constant.

0 commit comments

Comments
 (0)