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 grammatical and syntax errors in Move documentation #712

Merged
merged 2 commits into from
Nov 19, 2024
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
2 changes: 1 addition & 1 deletion apps/nextra/pages/en/build/smart-contracts/book/bool.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ Literals for `bool` are either `true` or `false`.

## Ownership

As with the other scalar values built-in to the language, boolean values are implicitly copyable,
As with the other scalar values built into the language, boolean values are implicitly copyable,
meaning they can be copied without an explicit instruction such as
[`copy`](variables.mdx#move-and-copy).
4 changes: 2 additions & 2 deletions apps/nextra/pages/en/build/smart-contracts/book/enums.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ The value of an enum value can be inspected using a match expression. For exampl
fun area(self: &Shape): u64 {
match (self) {
Circle{radius} => mul_with_pi(*radius * *radius),
Rectangle{width, height) => *width * *height
Rectangle{width, height} => *width * *height
}
}
```
Expand Down Expand Up @@ -227,7 +227,7 @@ enum VersionedData has key {
}
```

That following upgrade would not be allowed, since the order of variants must be preserved:
The following upgrade would not be allowed, since the order of variants must be preserved:

```move
enum VersionedData has key {
Expand Down