Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/map-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ hints later if available.

```go
var (
// m1 is safe to read and write;
// m1 is safe to read and write, but similar to a nil map declaration.
// m2 will panic on writes.
m1 = map[T1]T2{}
m2 map[T1]T2
Expand Down
2 changes: 1 addition & 1 deletion style.md
Original file line number Diff line number Diff line change
Expand Up @@ -3541,7 +3541,7 @@ hints later if available.

```go
var (
// m1 is safe to read and write;
// m1 is safe to read and write, but similar to a nil map declaration.
// m2 will panic on writes.
m1 = map[T1]T2{}
m2 map[T1]T2
Expand Down