diff --git a/container/gmap/gmap_z_example_str_any_test.go b/container/gmap/gmap_z_example_str_any_test.go index 0eebfacfb..5842d4d3b 100644 --- a/container/gmap/gmap_z_example_str_any_test.go +++ b/container/gmap/gmap_z_example_str_any_test.go @@ -59,7 +59,7 @@ func ExampleStrAnyMap_Map() { fmt.Println("after n1:", n1) // concurrent-safety, copy of underlying data - m2 := gmap.New(true) + m2 := gmap.NewStrAnyMap(true) m2.Set("key1", "val1") fmt.Println("m2:", m2)