@@ -19,7 +19,7 @@ struct TreeNode<T> {
1919struct DataMap < T > {
2020 /// The items in the tree
2121 items : HashMap < NodeId , Box < UnsafeCell < TreeNode < T > > > > ,
22- /// The parent of each node, or None if it is the root
22+ /// The parent of each node, or ` None` if it is the root
2323 parents : HashMap < NodeId , Option < NodeId > > ,
2424}
2525
@@ -315,7 +315,7 @@ impl<'arena, T> ArenaRefList<'arena, T> {
315315 }
316316 }
317317
318- /// Returns true if the list has an element with the given id.
318+ /// Returns ` true` if the list has an element with the given id.
319319 pub fn has ( & self , id : impl Into < NodeId > ) -> bool {
320320 let child_id = id. into ( ) ;
321321 let parent_id = self . parent_id ;
@@ -407,7 +407,7 @@ impl<'arena, T> ArenaMutList<'arena, T> {
407407 self . reborrow ( ) . is_descendant ( id)
408408 }
409409
410- /// Returns true if the list has an element with the given id.
410+ /// Returns ` true` if the list has an element with the given id.
411411 pub fn has ( & self , id : impl Into < NodeId > ) -> bool {
412412 self . reborrow ( ) . has ( id)
413413 }
@@ -506,7 +506,7 @@ impl<'arena, T> ArenaMutList<'arena, T> {
506506 /// Remove the item with the given id from the arena.
507507 ///
508508 /// If the id isn't in the list (even if it's e.g. a descendant), does nothing
509- /// and returns None.
509+ /// and returns ` None` .
510510 ///
511511 /// Else, returns the removed item.
512512 ///
0 commit comments