singleflight: fix typo in singleflight_test.go
Change-Id: Ia2160fdc8f1938d784a4e1595151c00bc521f5c3 Reviewed-on: https://go-review.googlesource.com/c/sync/+/626795 TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com> Commit-Queue: Ian Lance Taylor <iant@google.com> Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Emmanuel Odeke <emmanuel@orijtech.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Alan Donovan <adonovan@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
151027eb56
commit
913fb63af2
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue