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 #103

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 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
4 changes: 2 additions & 2 deletions book/src/move-basics/abilities-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ A struct without abilities cannot be discarded, or copied, or stored in the stor
struct a _Hot Potato_. It is a joke, but it is also a good way to remember that a struct without
abilities is like a hot potato - it can only be passed around and requires special handling. Hot
Potato is one of the most powerful patterns in Move, we go in detail about it in the
[Hot Potato](./../programmability/hot-potato.md) chapter.
[Hot Potato](./../programmability/hot-potato-pattern.md) chapter.

## Further reading

- [Type Abilities](/reference/type-abilities.html) in the Move Reference.
- [Type Abilities](/reference/abilities.html) in the Move Reference.
2 changes: 1 addition & 1 deletion book/src/move-basics/control-flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ control flow statements (explained in detail below):
code
- [`loop` and `while` loops](#repeating-statements-with-loops) - repeating a block of code
- [`break` and `continue` statements](#exiting-a-loop-early) - exiting a loop early
- [`return`](#return) statement - exiting a function early
- [`return`](#early-return) statement - exiting a function early

## Conditional Statements

Expand Down
2 changes: 1 addition & 1 deletion book/src/move-basics/copy-ability.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ All of the types defined in the standard library have the `copy` ability as well

## Further reading

- [Type Abilities](/reference/type-abilities.html) in the Move Reference.
- [Type Abilities](/reference/abilities.html) in the Move Reference.
4 changes: 2 additions & 2 deletions book/src/move-basics/drop-ability.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ properly handled and not ignored.

A struct with a single `drop` ability is called a _Witness_. We explain the concept of a _Witness_
in the
[Witness and Abstract Implementation](./../programmability/witness-and-abstract-implementation.md)
[Witness and Abstract Implementation](./../programmability/witness-pattern.md)
section.

## Types with the `drop` Ability
Expand All @@ -76,4 +76,4 @@ All of the types defined in the standard library have the `drop` ability as well

## Further reading

- [Type Abilities](/reference/type-abilities.html) in the Move Reference.
- [Type Abilities](/reference/abilities.html) in the Move Reference.
8 changes: 4 additions & 4 deletions book/src/move-basics/standard-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ and which module implements it.
| [std::ascii](https://docs.sui.io/references/framework/move-stdlib/ascii) | Provides basic ASCII operations | [String](./string.md) |
| [std::option](https://docs.sui.io/references/framework/move-stdlib/option) | Implements an `Option<T>` | [Option](./option.md) |
| [std::vector](https://docs.sui.io/references/framework/move-stdlib/vector) | Native operations on the vector type | [Vector](./vector.md) |
| [std::bcs](https://docs.sui.io/references/framework/move-stdlib/bcs) | Contains the `bcs::to_bytes()` function | [BCS](../move-basics/bcs.md) |
| [std::bcs](https://docs.sui.io/references/framework/move-stdlib/bcs) | Contains the `bcs::to_bytes()` function | [BCS](../programmability/bcs.md) |
| [std::address](https://docs.sui.io/references/framework/move-stdlib/address) | Contains a single `address::length` function | [Address](./address.md) |
| [std::type_name](https://docs.sui.io/references/framework/move-stdlib/type_name) | Allows runtime _type reflection_ | [Type Reflection](./type-reflection.md) |
| std::hash | Hashing functions: `sha2_256` and `sha3_256` | [Cryptography and Hashing](../programmability/cryptography-and-hashing.md) |
| std::debug | Contains debugging functions, which are available in only in **test** mode | [Debugging](./debugging.md) |
| std::debug | Contains debugging functions, which are available in only in **test** mode | [Debugging](./guides/debugging.md) |
| std::bit_vector | Provides operations on bit vectors | - |
| std::fixed_point32 | Provides the `FixedPoint32` type | - |

Expand All @@ -47,8 +47,8 @@ not be imported directly, but their functions are available on every integer val
| Module | Description |
| ---------------------------------------------------------------------- | ----------------------------- |
| [std::u8](https://docs.sui.io/references/framework/move-stdlib/u8) | Functions for the `u8` type |
| [std::16](https://docs.sui.io/references/framework/move-stdlib/u64) | Functions for the `u16` type |
| [std::u32](https://docs.sui.io/references/framework/move-stdlib/u64) | Functions for the `u32` type |
| [std::u16](https://docs.sui.io/references/framework/move-stdlib/u16) | Functions for the `u16` type |
| [std::u32](https://docs.sui.io/references/framework/move-stdlib/u32) | Functions for the `u32` type |
| [std::u64](https://docs.sui.io/references/framework/move-stdlib/u64) | Functions for the `u64` type |
| [std::u128](https://docs.sui.io/references/framework/move-stdlib/u128) | Functions for the `u128` type |
| [std::u256](https://docs.sui.io/references/framework/move-stdlib/u256) | Functions for the `u256` type |
Expand Down
2 changes: 1 addition & 1 deletion book/src/storage/key-ability.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ we present the `sui::transfer` module, which provides native storage functions f

## Further reading

- [Type Abilities](/reference/type-abilities.html) in the Move Reference.
- [Type Abilities](/reference/abilities.html) in the Move Reference.
2 changes: 1 addition & 1 deletion book/src/storage/store-ability.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ All of the types defined in the standard library have the `store` ability as wel

## Further reading

- [Type Abilities](/reference/type-abilities.html) in the Move Reference.
z- [Type Abilities](/reference/abilities.html) in the Move Reference.
4 changes: 2 additions & 2 deletions packages/samples/sources/move-basics/expression.move
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ let a;
let b = true; // true is a literal
let n = 1000; // 1000 is a literal
let h = 0x0A; // 0x0A is a literal
let v = b"hello"; // b'hello' is a byte vector literal
let x = x"0A"; // x'0A' is a byte vector literal
let v = b"hello"; // b"hello" is a byte vector literal
let x = x"0A"; // x"0A" is a byte vector literal
let c = vector[1, 2, 3]; // vector[] is a vector literal
// ANCHOR_END: literals

Expand Down
Loading