From fa81eadadd3ff3c6ea45e74c3b210a52775d9990 Mon Sep 17 00:00:00 2001 From: Gav Date: Sun, 4 Feb 2018 22:51:50 +0100 Subject: [PATCH] Doc comment. --- substrate/wasm-runtime/polkadot/src/primitives/header.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/substrate/wasm-runtime/polkadot/src/primitives/header.rs b/substrate/wasm-runtime/polkadot/src/primitives/header.rs index c37634cff5..2f624cadd6 100644 --- a/substrate/wasm-runtime/polkadot/src/primitives/header.rs +++ b/substrate/wasm-runtime/polkadot/src/primitives/header.rs @@ -38,6 +38,7 @@ pub struct Header { } impl Header { + /// Create a new instance with default fields except `number`, which is given as an argument. pub fn from_block_number(number: BlockNumber) -> Self { Header { parent_hash: Default::default(),