mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-16 17:51:10 +00:00
Fix docs urls (#11966)
* Fix docs urls * Update bin/node-template/README.md * Update frame/aura/src/lib.rs * Run cargo +nightly fmt Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
@@ -111,7 +111,7 @@ pub fn expand_error(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
if get_doc_literals(&error_item.attrs).is_empty() {
|
||||
error_item.attrs.push(syn::parse_quote!(
|
||||
#[doc = r"
|
||||
Custom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)
|
||||
Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)
|
||||
of this pallet.
|
||||
"]
|
||||
));
|
||||
|
||||
@@ -98,7 +98,7 @@ pub fn expand_event(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
if get_doc_literals(&event_item.attrs).is_empty() {
|
||||
event_item.attrs.push(syn::parse_quote!(
|
||||
#[doc = r"
|
||||
The [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted
|
||||
The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted
|
||||
by this pallet.
|
||||
"]
|
||||
));
|
||||
|
||||
@@ -74,7 +74,7 @@ pub fn expand(mut def: Def) -> proc_macro2::TokenStream {
|
||||
def.item.attrs.push(syn::parse_quote!(
|
||||
#[doc = r"
|
||||
The module that hosts all the
|
||||
[FRAME](https://docs.substrate.io/v3/runtime/frame)
|
||||
[FRAME](https://docs.substrate.io/main-docs/build/events-errors/)
|
||||
types needed to add this pallet to a
|
||||
runtime.
|
||||
"]
|
||||
|
||||
@@ -62,7 +62,7 @@ pub fn expand_pallet_struct(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
if get_doc_literals(&pallet_item.attrs).is_empty() {
|
||||
pallet_item.attrs.push(syn::parse_quote!(
|
||||
#[doc = r"
|
||||
The [pallet](https://docs.substrate.io/v3/runtime/frame#pallets) implementing
|
||||
The [pallet](https://docs.substrate.io/reference/frame-pallets/#pallets) implementing
|
||||
the on-chain logic.
|
||||
"]
|
||||
));
|
||||
|
||||
@@ -306,7 +306,7 @@ impl<T> Parameter for T where T: Codec + EncodeLike + Clone + Eq + fmt::Debug +
|
||||
///
|
||||
/// The following are reserved function signatures:
|
||||
///
|
||||
/// * `deposit_event`: Helper function for depositing an [event](https://docs.substrate.io/v3/runtime/events-and-errors).
|
||||
/// * `deposit_event`: Helper function for depositing an [event](https://docs.substrate.io/main-docs/build/events-errors/).
|
||||
/// The default behavior is to call `deposit_event` from the [System
|
||||
/// module](../frame_system/index.html). However, you can write your own implementation for events
|
||||
/// in your runtime. To use the default behavior, add `fn deposit_event() = default;` to your
|
||||
|
||||
@@ -763,7 +763,7 @@ impl<T: MaxEncodedLen> MaxEncodedLen for WrapperOpaque<T> {
|
||||
fn max_encoded_len() -> usize {
|
||||
let t_max_len = T::max_encoded_len();
|
||||
|
||||
// See scale encoding https://docs.substrate.io/v3/advanced/scale-codec
|
||||
// See scale encoding: https://docs.substrate.io/reference/scale-codec/
|
||||
if t_max_len < 64 {
|
||||
t_max_len + 1
|
||||
} else if t_max_len < 2usize.pow(14) {
|
||||
|
||||
Reference in New Issue
Block a user