dropped an errant bracket
This commit is contained in:
committed by
James Miranda
parent
02715c33d8
commit
c7e29112d0
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user