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: typos cleanup #6799

Merged
merged 2 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ The left side of the arrow `=>` is the pattern that we are matching on and the r

We check each arm starting from `0` and make our way down until we either find a match on our pattern or we reach the `catch_all` case.

The `|` operator can be used to produce a pattern that is a disjuction of other patterns.
The `|` operator can be used to produce a pattern that is a disjunction of other patterns.

The `catch_all` case is equivalent to an `else` in [if expressions](../if-expressions.md) and it does not have to be called `catch_all`. Any pattern declared after a `catch_all` case will not be matched because once the compiler sees the first `catch_all` it stop performing further checks.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Address Namespace

Sway utilizies namespaces to distinguish between address types.
Sway utilizes namespaces to distinguish between address types.

Having multiple address types enforces type-safety and expands the range of values that an address can take because the same value can be used across multiple types.

Expand Down
Loading