mirror of
https://github.com/FuelLabs/sway.git
synced 2025-08-09 21:28:17 +00:00
fix: typos cleanup (#6799)
## Description fixed 3 typos ## Checklist - [x] I have commented my code, particularly in hard-to-understand areas. - [x] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [x] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [x] I have requested a review from the relevant team or maintainers.
This commit is contained in:
parent
cf7b6664b5
commit
8fe2bd6ed2
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue