Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a9b85ed

Browse files
Small doc-comment changes again
1 parent 7296503 commit a9b85ed

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/utils/trees.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ use std::{cell::RefCell, rc::Rc};
4141
///
4242
/// **NOTE:** Simplified `Option<Rc<RefCell<TreeNode>>>` to `Option<TreeNode.val>`.
4343
///
44-
/// /// Example 2 - unbalanced tree:
44+
/// Example 2 - unbalanced tree:
4545
///
4646
/// ```rust
4747
/// use std::{cell::RefCell, rc::Rc};
@@ -162,8 +162,9 @@ use std::{cell::RefCell, rc::Rc};
162162
/// None None None None
163163
/// ```
164164
///
165-
/// NOTE: If root->right.val != root->left.val then the tree wouldn't be balanced. The same is the
166-
/// case if root->left->left.val != root->right->right.val.
165+
/// If root->right.val != root->left.val then the tree wouldn't be balanced.
166+
///
167+
/// The same is the case if root->left->left.val != root->right->right.val.
167168
///
168169
/// ## Big O
169170
///

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /