Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: correct function name in tutorial #789

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading