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

fix: typo in labeled arguments tutorial #233

Merged
merged 1 commit into from Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion book/docs/dyn_tutorial/labeled_arguments.md
Expand Up @@ -13,7 +13,7 @@ let p: my = Point(x: 22, y: 44)
print("The point is `{p}`").await
```

Try changing the code above to give the parameters in another orde, such as `Point(y: 44, x: 22)` -- you will see that the output doesn't change.
Try changing the code above to give the parameters in a different order, such as `Point(y: 44, x: 22)` -- you will see that the output doesn't change.

Adding labels can help make it clearer what is going on. The rules are as follows:

Expand Down