]> Cypherpunks repositories - gostls13.git/commit
Documentation: Fix a bug in the example in Constants subsection
authorJames Fysh <james.fysh@gmail.com>
Fri, 27 Aug 2010 21:54:16 +0000 (07:54 +1000)
committerRob Pike <r@golang.org>
Fri, 27 Aug 2010 21:54:16 +0000 (07:54 +1000)
commit089ce170930ebdf0908369fa7d0a30647488f2af
tree8494498fd8a9b3dc063f9284eee44d976ea9f375
parentb5664ee320011e59c2e295c34c194e496f65e7e0
Documentation: Fix a bug in the example in Constants subsection

Not a bug per-se, the issue is that the fmt.Sprintf method inside the
ByteSize.String() method ends up calling itself to generate the String
representation of the ByteSize value.  Infinite loops are bad.

    Updated as per review comments

R=r
CC=golang-dev
https://golang.org/cl/1974046
doc/effective_go.html