Skip to content

Commit

Permalink
fix lingering links
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi committed Aug 4, 2024
1 parent 8c5c431 commit b9cf00c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
6 changes: 2 additions & 4 deletions steps/11/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ Let's now learn how to use our new `StorageValue`.

## Basic APIs

The full list of APIs available for a `StorageValue` can be found here:
This tutorial will only go over just the basic APIs needed to build our Pallet.

https://docs.rs/frame-support/37.0.0/frame_support/storage/types/struct.StorageValue.html

But we will go over just the basics we need to build our Pallet.
Check out the [`StorageValue` documentation](https://docs.rs/frame-support/37.0.0/frame_support/storage/types/struct.StorageValue.html) if you want to see the full APIs.

### Reading Storage

Expand Down
8 changes: 2 additions & 6 deletions steps/13/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ In blockchain systems, these can literally be billion dollar bugs, so let's look

### Checked Math

The first choice for doing safe math is to use `checked_*` APIs, for example `checked_add`:

https://docs.rs/num/latest/num/trait.CheckedAdd.html
The first choice for doing safe math is to use `checked_*` APIs, for example [`checked_add`](https://docs.rs/num/latest/num/trait.CheckedAdd.html).

The checked math APIs will check if there are any underflows or overflows, and return `None` in those cases. Otherwise, if the math operation is calculated without error, it returns `Some(result)`.

Expand All @@ -111,9 +109,7 @@ Note that we didn't need to call `.into()` in this case, because `?` already doe

### Saturating Math

The other option for safe math is to use `saturating_*` APIs, for example `saturating_add`:

https://docs.rs/num/latest/num/traits/trait.SaturatingAdd.html
The other option for safe math is to use `saturating_*` APIs, for example [`saturating_add`](https://docs.rs/num/latest/num/traits/trait.SaturatingAdd.html).

This option is useful because it is safe and does NOT return an `Option`.

Expand Down
6 changes: 2 additions & 4 deletions steps/18/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ Now let's learn to interact with our `Kitties` storage map, and update the map w

## Basic APIs

The full list of APIs available for `StorageMap` can be found here:
This tutorial will only go over just the basic APIs needed to build our Pallet.

https://docs.rs/frame-support/37.0.0/frame_support/storage/types/struct.StorageMap.html

But we will go over just the basics we need to build our Pallet.
Check out the [`StorageMap` documentation](https://docs.rs/frame-support/37.0.0/frame_support/storage/types/struct.StorageMap.html) if you want to see the full APIs.

### Reading Storage

Expand Down
4 changes: 1 addition & 3 deletions steps/31/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ There are other ways to define the bound, and even make it configurable, but tha

## Basic APIs

The `BoundedVec` type has almost all the same APIs as a `Vec. You can find the full list of APIs here:

https://docs.rs/frame-support/37.0.0/frame_support/struct.BoundedVec.html
The `BoundedVec` type has almost all the same APIs as a `Vec`. You can find the full list of APIs in the [`BoundedVec` documentation](https://docs.rs/frame-support/37.0.0/frame_support/struct.BoundedVec.html).

The main difference is the fact that a `BoundedVec` cannot always accept a new item.

Expand Down

0 comments on commit b9cf00c

Please sign in to comment.