mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Fixed a syntax error
parent
3527787b13
commit
1d90207ce2
@ -460,7 +460,7 @@ a variable, it will be allocated on the heap if necessary. So these
|
||||
functions are equivalent:
|
||||
|
||||
```go
|
||||
type S { I int }
|
||||
type S struct{ I int }
|
||||
|
||||
func f1() *S {
|
||||
return new(S)
|
||||
|
Loading…
x
Reference in New Issue
Block a user