mirror of https://github.com/golang/go.git
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 New Issue