From 913fb63af28f446cd10c684ee847b5606cf328f7 Mon Sep 17 00:00:00 2001 From: catatsuy Date: Sat, 9 Nov 2024 14:08:05 +0900 Subject: [PATCH] singleflight: fix typo in singleflight_test.go Change-Id: Ia2160fdc8f1938d784a4e1595151c00bc521f5c3 Reviewed-on: https://go-review.googlesource.com/c/sync/+/626795 TryBot-Result: Gopher Robot Auto-Submit: Ian Lance Taylor Run-TryBot: Emmanuel Odeke Commit-Queue: Ian Lance Taylor Reviewed-by: Emmanuel Odeke LUCI-TryBot-Result: Go LUCI Auto-Submit: Emmanuel Odeke Reviewed-by: Ian Lance Taylor Reviewed-by: Alan Donovan Reviewed-by: Cherry Mui --- singleflight/singleflight_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/singleflight/singleflight_test.go b/singleflight/singleflight_test.go index 1e85b17..853ec42 100644 --- a/singleflight/singleflight_test.go +++ b/singleflight/singleflight_test.go @@ -411,7 +411,7 @@ func ExampleGroup() { // Results are shared by functions executed with duplicate keys. fmt.Println("Shared:", res2.Shared) // Only the first function is executed: it is registered and started with "key", - // and doesn't complete before the second funtion is registered with a duplicate key. + // and doesn't complete before the second function is registered with a duplicate key. fmt.Println("Equal results:", res1.Val.(string) == res2.Val.(string)) fmt.Println("Result:", res1.Val)