From fc930752d4922b9ebd89f6b951c6de024271985f Mon Sep 17 00:00:00 2001 From: Mat Coke Date: Thu, 20 Jun 2024 23:30:18 +0900 Subject: [PATCH 1/2] Fix a minor typo in a comment --- _content/doc/tutorial/generics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_content/doc/tutorial/generics.md b/_content/doc/tutorial/generics.md index 0d61fe9048..a303387b75 100644 --- a/_content/doc/tutorial/generics.md +++ b/_content/doc/tutorial/generics.md @@ -509,7 +509,7 @@ func SumIntsOrFloats[K comparable, V int64 | float64](m map[K]V) V { return s } -// SumNumbers sums the values of map m. Its supports both integers +// SumNumbers sums the values of map m. It supports both integers // and floats as map values. func SumNumbers[K comparable, V Number](m map[K]V) V { var s V From 1918f95630ea13f5f9157296ee45c12eb7df6c8c Mon Sep 17 00:00:00 2001 From: Mat Coke Date: Thu, 20 Jun 2024 23:43:33 +0900 Subject: [PATCH 2/2] Update Go playground link Modified the code in the playground and updated the corresponding link. --- _content/doc/tutorial/generics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_content/doc/tutorial/generics.md b/_content/doc/tutorial/generics.md index a303387b75..c9bd079da8 100644 --- a/_content/doc/tutorial/generics.md +++ b/_content/doc/tutorial/generics.md @@ -439,7 +439,7 @@ Suggested next topics: You can run this program in the -[Go playground](/play/p/apNmfVwogK0?v=gotip). On the +[Go playground](/play/p/kuUxcdVHtWg?v=gotip). On the playground simply click the **Run** button. ```