From 117a51e3415d84cb751ba1d54f49c0bb6e0438bf Mon Sep 17 00:00:00 2001 From: jjpinto Date: Fri, 19 Dec 2025 13:51:30 -0500 Subject: [PATCH 1/2] Update comment for map initialization clarity Clarify that m1 is similar to a nil map declaration. --- src/map-init.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map-init.md b/src/map-init.md index 5fecf0e6..4f993dff 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 From 89e6da6c0570ebff5790f55dbf4ae3a5f02193e3 Mon Sep 17 00:00:00 2001 From: jjpinto <16046674+jjpinto@users.noreply.github.com> Date: Fri, 19 Dec 2025 18:51:52 +0000 Subject: [PATCH 2/2] Auto-update style.md --- style.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/style.md b/style.md index 6ffaff4b..f19b1305 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