diff --git a/notes/rbtree.md b/notes/rbtree.md index 2b5d0b7..f19fcc5 100644 --- a/notes/rbtree.md +++ b/notes/rbtree.md @@ -17,15 +17,15 @@ type Node = { ```rust enum List { None, - Some<&Node> // compilation error, but it doesn't matter for the article's purpose. + Some<&Node>, // compilation error, but it doesn't matter for the article's purpose. } // or type List = Option<&Node>; struct Node { - value: T - next: List + value: T, + next: List, } ``` @@ -43,8 +43,8 @@ type Node = { ```rust type Tree = Option<&Node>; struct Node { - left: Tree - value: T - right: Tree + left: Tree, + value: T, + right: Tree, } ```