Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
KiChjang committed Aug 24, 2022
1 parent 46d53f7 commit 17b41b5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions frame/support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1845,18 +1845,18 @@ pub mod pallet_prelude {
/// [`frame_support::storage::types::QueryKindTrait`]. There are 3 implementations of this
/// trait by default:
/// 1. [`frame_support::storage::types::OptionQuery`], the default `QueryKind` used when this
/// type parameter is omitted. Specifying this as the `QueryKind` would cause storage map
/// APIs that return a `QueryKind` to instead return an `Option`, returning `Some` when a
/// value does exist under a specified storage key, and `None` otherwise.
/// type parameter is omitted. Specifying this as the `QueryKind` would cause storage map
/// APIs that return a `QueryKind` to instead return an `Option`, returning `Some` when a
/// value does exist under a specified storage key, and `None` otherwise.
/// 2. [`frame_support::storage::types::ValueQuery`] causes storage map APIs that return a
/// `QueryKind` to instead return the value type. In cases where a value does not exist
/// under a specified storage key, the `OnEmpty` type parameter on `QueryKindTrait` is used
/// to return an appropriate value.
/// under a specified storage key, the `OnEmpty` type parameter on `QueryKindTrait` is used
/// to return an appropriate value.
/// 3. [`frame_support::storage::types::ResultQuery`] causes storage map APIs that return a
/// `QueryKind` to instead return a `Result<T, E>`, with `T` being the value type and `E`
/// being the pallet error type specified by the `#[pallet::error]` attribute. In cases
/// where a value does not exist under a specified storage key, an `Err` with the specified
/// pallet error variant is returned.
/// being the pallet error type specified by the `#[pallet::error]` attribute. In cases
/// where a value does not exist under a specified storage key, an `Err` with the specified
/// pallet error variant is returned.
///
/// NOTE: If the `QueryKind` generic parameter is still generic at this stage or is using some
/// type alias then the generation of the getter might fail. In this case the getter can be
Expand Down

0 comments on commit 17b41b5

Please sign in to comment.