Skip to content

Commit

Permalink
Update course5/course_en.md
Browse files Browse the repository at this point in the history
Co-authored-by: Zihang Ye <[email protected]>
  • Loading branch information
Milky2018 and peter-jerry-ye authored Apr 29, 2024
1 parent bbdce79 commit 688ca21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course5/course_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ fn remove_largest(tree: IntTree) -> (IntTree, Int) {
```moonbit no-check
fn remove(tree: IntTree, value: Int) -> IntTree {
match tree { ...
Node(root, left, right) => if root == value {
Node(root, left, right) => if root == value {
let (newLeft, newRoot) => remove_largest(left)
Node(newRoot, newLeft, right)
} else ... }
Expand Down

0 comments on commit 688ca21

Please sign in to comment.