From 2366f7423a76c72cb9afff60b12a8bf82bd0d6eb Mon Sep 17 00:00:00 2001 From: Aaron <70529471+aaronbojarski@users.noreply.github.com> Date: Thu, 3 Oct 2024 12:27:29 +0200 Subject: [PATCH] fix function name in tutorial (#789) Co-authored-by: aaronbojarski --- docs/tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index d09f6bcf5..c67dff54e 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -228,7 +228,7 @@ Below, we show two clients of `incr`. The function`client1` allocates a `pair` p ```go func client1() { p := &pair{1,2} - p.sumPair(42) + p.incr(42) assert p.left == 43 } ``` @@ -238,7 +238,7 @@ Similar to `client1`, `client2` allocates a `pair` pointer, as well. However, th ```go func client2() { x@ := pair{1,2} // if taking the reference of a variable should be possible, then add @ - (&x).sumPair(42) + (&x).incr(42) assert x.left == 43 } ```