diff --git a/GoForCPPProgrammers.md b/GoForCPPProgrammers.md index 3592138d..654d384a 100644 --- a/GoForCPPProgrammers.md +++ b/GoForCPPProgrammers.md @@ -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)