Skip to content

Commit

Permalink
doc: add a minimal example for stump::new
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidson-Souza committed Sep 22, 2022
1 parent 0d599d9 commit 40089f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/accumulator/stump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 40089f6

Please sign in to comment.