1
0
mirror of https://github.com/golang/go synced 2024-11-24 11:10:03 -07:00
go/doc/progs
Russ Cox da5a251dde doc: do not slice array literal
The special case in the spec is that you can take the
address of a composite literal using the & operator.

A composite literal is not, however, generally addressable,
and the slice operator requires an addressable argument,
so [3]int{1,2,3}[:] is invalid.  This tutorial code and one bug
report are the only places in the tree where it appears.

R=r, gri
CC=golang-dev
https://golang.org/cl/5437120
2011-12-02 12:30:37 -05:00
..
cat_rot13.go non-pkg: gofix -r error -force=error 2011-11-01 22:06:05 -04:00
cat.go tutorial,effective_go: prepare for error change 2011-11-01 21:50:21 -04:00
echo.go doc/progs: gofmt -w 2011-07-09 20:16:45 +10:00
eff_bytesize.go effective go: extract and test a couple more examples. 2011-08-22 22:46:59 +10:00
eff_qr.go renaming_4: gofix -r everything/but/src/pkg 2011-11-08 15:43:02 -08:00
eff_sequence.go effective go: extract and test a couple more examples. 2011-08-22 22:46:59 +10:00
file_windows.go doc/progs: fix windows version to satisfy new error 2011-11-14 20:53:03 +11:00
file.go syscall: use error 2011-11-13 22:44:52 -05:00
helloworld3.go non-pkg: gofix -r error -force=error 2011-11-01 22:06:05 -04:00
helloworld.go doc/progs: gofmt -w 2011-07-09 20:16:45 +10:00
print_string.go update tutorial. 2009-12-16 10:29:53 +11:00
print.go doc/progs: gofmt -w 2011-07-09 20:16:45 +10:00
run ld: Fixes issue 1899 ("cannot create 8.out.exe") 2011-10-14 20:37:07 +01:00
server1.go tutorial: describe unidirectional channels 2011-11-10 14:02:14 -08:00
server.go tutorial: describe unidirectional channels 2011-11-10 14:02:14 -08:00
sieve1.go doc/progs: gofmt -w 2011-07-09 20:16:45 +10:00
sieve.go doc/progs: gofmt -w 2011-07-09 20:16:45 +10:00
sort.go doc/progs: gofmt -w 2011-07-09 20:16:45 +10:00
sortmain.go doc/progs: gofmt -w 2011-07-09 20:16:45 +10:00
strings.go doc/progs: gofmt -w 2011-07-09 20:16:45 +10:00
sum.go doc: do not slice array literal 2011-12-02 12:30:37 -05:00