提交 82c793f9 编写于 作者: R Ryan Gladstone

dropped an errant bracket

上级 3d4e91c6
......@@ -417,7 +417,7 @@ As I said above, `map` is a reference type. If two `map`s point to same underlyi
### make, new
`make` does memory allocation for built-in models, such as `map`, `slice`, and `channel`), while `new` is for types' memory allocation.
`make` does memory allocation for built-in models, such as `map`, `slice`, and `channel`, while `new` is for types' memory allocation.
`new(T)` allocates zero-value to type `T`'s memory, returns its memory address, which is the value of type `*T`. By Go's definition, it returns a pointer which points to type `T`'s zero-value.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册