Skip to content

Commit

Permalink
gotypes: fix typeandvalue output
Browse files Browse the repository at this point in the history
Change-Id: Id9a25bacfa670091e0b02efb6110d758ec5afca5
Reviewed-on: https://go-review.googlesource.com/23567
Reviewed-by: Alan Donovan <adonovan@google.com>
  • Loading branch information
mpl authored and adonovan committed May 31, 2016
1 parent ef176d8 commit adefd0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion gotypes/README.md
Expand Up @@ -1492,7 +1492,11 @@ make mode: builtin
type: func(map[string]int) map[string]int
map[string]int mode: type
type: map[string]int
m["hello"] mode: value,assignable,ok
string mode: type
type: string
int mode: type
type: int
m["hello, "+"world"] mode: value,assignable,ok
type: (int, bool)
m mode: value,addressable,assignable
type: map[string]int
Expand Down
6 changes: 5 additions & 1 deletion gotypes/typeandvalue/main.go
Expand Up @@ -104,7 +104,11 @@ make mode: builtin
type: func(map[string]int) map[string]int
map[string]int mode: type
type: map[string]int
m["hello"] mode: value,assignable,ok
string mode: type
type: string
int mode: type
type: int
m["hello, "+"world"] mode: value,assignable,ok
type: (int, bool)
m mode: value,addressable,assignable
type: map[string]int
Expand Down

0 comments on commit adefd0d

Please sign in to comment.