From 613a50428b4ebeaff51e890fb6cfaa131a618257 Mon Sep 17 00:00:00 2001 From: 564104865 <48121048+564104865@users.noreply.github.com> Date: Thu, 4 Nov 2021 23:23:40 +0800 Subject: [PATCH] Update gcache_z_example_cache_test.go --- os/gcache/gcache_z_example_cache_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/gcache/gcache_z_example_cache_test.go b/os/gcache/gcache_z_example_cache_test.go index be2cdca4e..c1ca72b51 100644 --- a/os/gcache/gcache_z_example_cache_test.go +++ b/os/gcache/gcache_z_example_cache_test.go @@ -451,14 +451,14 @@ func ExampleCache_Keys() { // Of course, you can also easily use the gcache package method directly c := gcache.New() - c.SetMap(ctx, g.MapAnyAny{"k1": "v1", "k2": "v2"}, 0) + c.SetMap(ctx, g.MapAnyAny{"k1": "v1"}, 0) // Print the current list of key values keys1, _ := c.Keys(ctx) fmt.Println(keys1) // Output: - // [k1 k2] + // [k1] }