aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Liao <sean@liao.dev>2025-11-28 20:17:30 +0000
committerGopher Robot <gobot@golang.org>2025-12-01 09:42:34 -0800
commit5713397e2f6aae1a14d9b1e141292be78fc626eb (patch)
tree0e71bd026550468d52b98d36720ef623efdad23d
parent76374fc4b19620ade12c9ddcea67024d997ff773 (diff)
downloadgo-x-website-5713397e2f6aae1a14d9b1e141292be78fc626eb.tar.xz
_content/blog/generic-interfaces: fix typo in code sample
Fixes golang/go#76489 Change-Id: I22e26faf8276387c676b5770409967d09e180d0c Reviewed-on: https://go-review.googlesource.com/c/website/+/724283 Reviewed-by: Ian Lance Taylor <iant@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Ian Lance Taylor <iant@golang.org> Reviewed-by: Mark Freeman <markfreeman@google.com>
-rw-r--r--_content/blog/generic-interfaces.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/_content/blog/generic-interfaces.md b/_content/blog/generic-interfaces.md
index b2ed8b43..2bd4bed3 100644
--- a/_content/blog/generic-interfaces.md
+++ b/_content/blog/generic-interfaces.md
@@ -59,7 +59,7 @@ you cannot insert struct types, like [time.Time](/pkg/time#Time).
We can remedy that by requiring the user to provide a comparison function:
{{raw `
- // A FuncTree must be created with NewTreeFunc.
+ // A FuncTree must be created with NewFuncTree.
type FuncTree[E any] struct {
root *funcNode[E]
cmp func(E, E) int