diff --git a/README.md b/README.md index 00c841a..bb3b271 100644 --- a/README.md +++ b/README.md @@ -45,8 +45,8 @@ enum BinaryTree { Leaf(i32), Node { value: i32, - left: StackSafe>, - right: StackSafe>, + left: Box>, + right: Box>, }, } diff --git a/stacksafe/src/lib.rs b/stacksafe/src/lib.rs index 7fbb5b6..d960f5e 100644 --- a/stacksafe/src/lib.rs +++ b/stacksafe/src/lib.rs @@ -58,8 +58,8 @@ //! Leaf(i32), //! Node { //! value: i32, -//! left: StackSafe>, -//! right: StackSafe>, +//! left: Box>, +//! right: Box>, //! }, //! } //! @@ -155,12 +155,12 @@ use std::sync::atomic::Ordering; /// /// struct TreeNode { /// value: T, -/// left: Option>>>, -/// right: Option>>>, +/// left: Option>>>, +/// right: Option>>>, /// } /// /// #[stacksafe] -/// fn tree_depth(node: &Option>>>) -> usize { +/// fn tree_depth(node: &Option>>>) -> usize { /// match node { /// None => 0, /// Some(n) => 1 + tree_depth(&n.left).max(tree_depth(&n.right)),