mirror of
https://github.com/golang/go
synced 2024-09-18 15:32:18 +00:00
- fixed a typo
SVN=120165
This commit is contained in:
parent
d4aa5c0b45
commit
896c8f4ecc
|
@ -1237,7 +1237,7 @@ initial values.
|
|||
For instance,
|
||||
|
||||
type S struct { a int; b float }
|
||||
new(int32)
|
||||
new(S)
|
||||
|
||||
allocates storage for an S, initializes it (a=0, b=0.0), and returns a
|
||||
value of type *S pointing to that storage.
|
||||
|
|
Loading…
Reference in a new issue