• Russ Cox's avatar
    doc: do not slice array literal · da5a251d
    Russ Cox authored
    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
    da5a251d
Name
Last commit
Last update
..
codelab/wiki Loading commit data...
codewalk Loading commit data...
devel Loading commit data...
gopher Loading commit data...
play Loading commit data...
progs Loading commit data...
talks Loading commit data...
ExpressivenessOfGo.pdf Loading commit data...
GoCourseDay1.pdf Loading commit data...
GoCourseDay2.pdf Loading commit data...
GoCourseDay3.pdf Loading commit data...
Makefile Loading commit data...
all.css Loading commit data...
button_background.png Loading commit data...
code.html Loading commit data...
codereview_with_mq.html Loading commit data...
community.html Loading commit data...
contrib.html Loading commit data...
contribute.html Loading commit data...
debugging_with_gdb.html Loading commit data...
docs.html Loading commit data...
effective_go.html Loading commit data...
effective_go.tmpl Loading commit data...
frontpage.css Loading commit data...
gccgo_contribute.html Loading commit data...
gccgo_install.html Loading commit data...
go-logo-black.png Loading commit data...
go-logo-blue.png Loading commit data...
go-logo-white.png Loading commit data...
go_faq.html Loading commit data...
go_for_cpp_programmers.html Loading commit data...
go_mem.html Loading commit data...
go_spec.html Loading commit data...
go_tutorial.html Loading commit data...
go_tutorial.tmpl Loading commit data...
godocs.js Loading commit data...
ie.css Loading commit data...
install.html Loading commit data...
logo-153x55.png Loading commit data...
logo.png Loading commit data...
makehtml Loading commit data...
play_overlay.png Loading commit data...
playground.html Loading commit data...
popups.js Loading commit data...
root.html Loading commit data...
sieve.gif Loading commit data...
tmpltohtml.go Loading commit data...
video-001.png Loading commit data...
video-002.png Loading commit data...
video-003.png Loading commit data...
video-004.png Loading commit data...
video-005.jpg Loading commit data...