Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: golang/sync
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.9.0
Choose a base ref
...
head repository: golang/sync
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.10.0
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Nov 13, 2024

  1. singleflight: fix typo in singleflight_test.go

    Change-Id: Ia2160fdc8f1938d784a4e1595151c00bc521f5c3
    Reviewed-on: https://go-review.googlesource.com/c/sync/+/626795
    TryBot-Result: Gopher Robot <[email protected]>
    Auto-Submit: Ian Lance Taylor <[email protected]>
    Run-TryBot: Emmanuel Odeke <[email protected]>
    Commit-Queue: Ian Lance Taylor <[email protected]>
    Reviewed-by: Emmanuel Odeke <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Auto-Submit: Emmanuel Odeke <[email protected]>
    Reviewed-by: Ian Lance Taylor <[email protected]>
    Reviewed-by: Alan Donovan <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    catatsuy authored and gopherbot committed Nov 13, 2024
    Copy the full SHA
    913fb63 View commit details
Showing with 1 addition and 1 deletion.
  1. +1 −1 singleflight/singleflight_test.go
2 changes: 1 addition & 1 deletion singleflight/singleflight_test.go
Original file line number Diff line number Diff line change
@@ -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)