diff --git a/src/map-init.md b/src/map-init.md index 5fecf0e..4f993df 100644 --- a/src/map-init.md +++ b/src/map-init.md @@ -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 diff --git a/style.md b/style.md index 6ffaff4..f19b130 100644 --- a/style.md +++ b/style.md @@ -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