1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:34:40 -07:00
go/doc
Russ Cox c1045db1d8 go_spec: use PrimaryExpr as type switch expression
Without this change, the spec parses <-c.(type) as (<-c).(type)
but parses <-c.(int) as <-(c.(int)).

With this change, the former parses as <-(c.(type)).

All three parsers already implement this rule, because
they look for the "type" word during parsing of a standard
type assertion.  This change merely brings the
spec in line with the implementations.

http://code.google.com/p/go/source/browse/src/cmd/gc/go.y#801
http://code.google.com/p/go/source/browse/src/pkg/go/parser/parser.go#900
http://gcc.gnu.org/viewcvs/branches/gccgo/gcc/go/parse.cc?revision=155389&view=markup#l2469

Pointed out by Brett Kail on golang-nuts.

R=gri
CC=golang-dev
https://golang.org/cl/182044
2009-12-23 13:48:44 -08:00
..
devel Add roadmap document. 2009-12-16 15:30:39 -08:00
gordon scaled bumpers 2009-11-08 00:16:25 -08:00
progs update tutorial. 2009-12-16 10:29:53 +11:00
code.html make it more explicit that design discussions should happen before code reviews 2009-12-17 12:12:47 +11:00
contribute.html make it more explicit that design discussions should happen before code reviews 2009-12-17 12:12:47 +11:00
effective_go.html fix documentation bug in example 2009-12-23 13:47:58 +11:00
gccgo_contribute.html Adjust gccgo license references. 2009-11-07 23:42:58 -08:00
gccgo_install.html On 32-bit x86, one should configure with --with-arch=. 2009-11-18 12:48:48 -08:00
go_faq.html faq: add question about translation 2009-12-03 17:23:33 -08:00
go_for_cpp_programmers.html go for c++ programmers; fixes. 2009-11-08 01:08:26 -08:00
go_lang_faq.html explain the situation with unicode and identifiers 2009-11-17 14:40:07 -08:00
go_mem.html assorted cleanup 2009-11-08 21:08:27 -08:00
go_spec.html go_spec: use PrimaryExpr as type switch expression 2009-12-23 13:48:44 -08:00
go_talk-20091030.pdf recompress go_talk.pdf by running through ghostscript. 2009-11-02 18:21:16 -08:00
go_tutorial.html update tutorial. 2009-12-16 10:29:53 +11:00
go_tutorial.txt update tutorial. 2009-12-16 10:29:53 +11:00
go-logo-black.png godoc: style update. 2009-11-05 12:18:54 -08:00
go-logo-blue.png Update the styling of the godoc pages. 2009-11-03 19:59:45 -08:00
GoCourseDay1.pdf pdf cleanup: fix links, remove internal references. 2009-11-02 15:28:41 -08:00
GoCourseDay2.pdf have http server in-line PDF files. 2009-10-21 19:52:11 -07:00
GoCourseDay3.pdf pdf cleanup: fix links, remove internal references. 2009-11-02 15:28:41 -08:00
godocs.js godocs.js: fix bad variable name 2009-11-15 12:57:33 -08:00
htmlgen.go bye-bye to old makehtml. 2009-10-13 22:10:16 -07:00
install.html doc/install.html: how to update to a new release 2009-12-15 19:16:56 -08:00
logo-153x55.png new logo 2009-10-12 22:58:32 -07:00
Makefile bye-bye to old makehtml. 2009-10-13 22:10:16 -07:00
makehtml bye-bye to old makehtml. 2009-10-13 22:10:16 -07:00
prog.sh clean up the mess that copyright notices make 2009-10-13 17:17:30 -07:00
root.html update video links 2009-11-10 14:09:01 -08:00
sieve.gif repair corrupted sieve.gif 2009-10-30 10:34:01 -07:00
style.css some godoc cleanup: 2009-12-01 09:15:05 -08:00
video-snap.jpg godoc: style update. 2009-11-05 12:18:54 -08:00