Skip to content

Commit

Permalink
fix function name in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbojarski committed Oct 3, 2024
1 parent 322aa64 commit 1b21298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```
Expand All @@ -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
}
```
Expand Down

0 comments on commit 1b21298

Please sign in to comment.