The cap of the result slice of []byte(aString) is set to -realCap initially.
An negative cap indicates the elements of the slice shouldn't be modified.
When a modification operation on the result slice is encountered later,
a duplication is performed and the cap of the slice is set to realCap.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to