Skip to content

Commit

Permalink
chore: fix some typos (#58)
Browse files Browse the repository at this point in the history
Signed-off-by: luchenhan <[email protected]>
  • Loading branch information
luchenhan authored May 1, 2024
1 parent b2f0b2f commit db2eacb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions book/src/storage/transfer-restrictions.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ To expand on the example above:

The decision on whether to add the `store` ability to a type should be made carefully. On one hand,
it is de-facto a requirement for the type to be _usable_ by other applications. On the other hand,
it allows _wrapping_ and changing the intented storage model. For example, a character may be
intented to be owned by accounts, but with the `store` ability it can be frozen (cannot be shared -
it allows _wrapping_ and changing the intended storage model. For example, a character may be
intended to be owned by accounts, but with the `store` ability it can be frozen (cannot be shared -
this transition is restricted).
2 changes: 1 addition & 1 deletion reference/src/method-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ coin.value();
When a method is called, the compiler will statically determine which function is called based on
the type of the receiver (the argument on the left-hand side of the `.`). The compiler maintains a
mapping from type and method name to the module and function name that should be called. This
mapping is created fom the `use fun` aliases that are currently in scope, and from the appropriate
mapping is created form the `use fun` aliases that are currently in scope, and from the appropriate
functions in the receiver type's defining module. In all cases, the receiver type is the first
argument to the function, whether by-value or by-reference.

Expand Down

0 comments on commit db2eacb

Please sign in to comment.