Skip to content
Snippets Groups Projects
Commit fa81eada authored by Gav's avatar Gav
Browse files

Doc comment.

parent ba0746fd
Branches
No related merge requests found
......@@ -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(),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment