• Robert Griesemer's avatar
    spec: fix spec on conversions to match implementations · de47f68c
    Robert Griesemer authored
    The existing compilers convert empty strings to empty
    but non-nil byte and rune slices. The spec required
    a nil byte and rune slice in those cases. That seems
    an odd additional requirement. Adjust the spec to
    match the reality.
    
    Also, removed over-specification for conversions of
    nil []byte and []rune: such nil slices already act
    like empty slices and thus don't need extra language.
    Added extra examples instead.
    
    Fixes #5704.
    
    R=rsc, r, iant
    CC=golang-dev
    https://golang.org/cl/10440045
    de47f68c
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...