--- a/pallets/common/src/dispatch.rs +++ b/pallets/common/src/dispatch.rs @@ -71,7 +71,7 @@ /// Interface for working with different collections through the dispatcher. pub trait CollectionDispatch { - /// Create a collection. The collection will be created according to the value of [data.mode](CreateCollectionData::mode). + /// Create a collection. The collection will be created according to the value of [`data.mode`](CreateCollectionData::mode). /// /// * `sender` - The user who will become the owner of the collection. /// * `data` - Description of the created collection. @@ -94,6 +94,6 @@ /// Get the collection handle for the corresponding implementation. fn into_inner(self) -> CollectionHandle; - /// Get the implementation of [CommonCollectionOperations]. + /// Get the implementation of [`CommonCollectionOperations`]. fn as_dyn(&self) -> &dyn CommonCollectionOperations; } --- a/pallets/common/src/lib.rs +++ b/pallets/common/src/lib.rs @@ -16,13 +16,13 @@ //! # Common pallet //! +//! The Common pallet provides functionality for handling collections. +//! +//! ## Overview +//! //! The Common pallet provides an interface for common collection operations for different collection types //! (see [CommonCollectionOperations]), as well as a generic dispatcher for these, see [dispatch] module. //! It also provides this functionality to EVM, see [erc] and [eth] modules. -//! -//! ## Overview -//! -//! The Common pallet provides functionality for handling collections. //! //! The Common pallet provides functions for: //! @@ -44,7 +44,7 @@ //! metadata can be placed. //! //! **Permissions on token properties** - For each property in the token can be set permission -//! to change, see [PropertyPermission]. +//! to change, see [`PropertyPermission`]. //! //! **Collection administrator** - For a collection, you can set administrators who have the right //! to most actions on the collection.