From 135d3387229db1c7a119d253cccf1fd60b8187a6 Mon Sep 17 00:00:00 2001 From: Daniel Bigos Date: Wed, 15 May 2024 14:59:40 +0200 Subject: [PATCH] docs: improve docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Alexander González --- examples/erc721/src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/erc721/src/lib.rs b/examples/erc721/src/lib.rs index 02b11d81..0bec801e 100644 --- a/examples/erc721/src/lib.rs +++ b/examples/erc721/src/lib.rs @@ -38,9 +38,10 @@ impl Token { self.metadata.constructor(name, symbol, base_uri); } - // Override [`ERC721UriStorage::token_uri`]. - // Provide concatenation of Base URI from [`ERC721Metadata`] - // and `token_uri` from [`ERC721UriStorage`] + // Overrides [`ERC721UriStorage::token_uri`]. + // + // Returns the concatenation of the Base URI from [`ERC721Metadata`] + // and the Token URI from [`ERC721UriStorage`]. pub fn token_uri(&self, token_id: U256) -> String { let mut uri = self.metadata.base_uri(); let token_uri = self.uri_storage.token_uri(token_id);