• 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
..
cat.go Loading commit data...
cat_rot13.go Loading commit data...
echo.go Loading commit data...
eff_bytesize.go Loading commit data...
eff_qr.go Loading commit data...
eff_sequence.go Loading commit data...
file.go Loading commit data...
file_windows.go Loading commit data...
helloworld.go Loading commit data...
helloworld3.go Loading commit data...
print.go Loading commit data...
print_string.go Loading commit data...
run Loading commit data...
server.go Loading commit data...
server1.go Loading commit data...
sieve.go Loading commit data...
sieve1.go Loading commit data...
sort.go Loading commit data...
sortmain.go Loading commit data...
strings.go Loading commit data...
sum.go Loading commit data...