From 40089f60a4619225aafad814e094c0afd06e2462 Mon Sep 17 00:00:00 2001 From: Davidson Souza Date: Thu, 22 Sep 2022 15:01:50 -0300 Subject: [PATCH] doc: add a minimal example for stump::new --- src/accumulator/stump.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/accumulator/stump.rs b/src/accumulator/stump.rs index 6adcfb4..44ba708 100644 --- a/src/accumulator/stump.rs +++ b/src/accumulator/stump.rs @@ -10,6 +10,11 @@ pub struct Stump { impl Stump { /// Creates an empty Stump + ///# Example + /// ``` + /// use rustreexo::accumulator::stump::Stump; + /// let s = Stump::new(); + /// ``` pub fn new() -> Self { Stump { leafs: 0,