diff --git a/problems/0435.无重叠区间.md b/problems/0435.无重叠区间.md index 1a33f98e..cf9996dd 100644 --- a/problems/0435.无重叠区间.md +++ b/problems/0435.无重叠区间.md @@ -423,7 +423,7 @@ object Solution { ```Rust impl Solution { - pub fn erase_overlap_intervals(intervals: Vec>) -> i32 { + pub fn erase_overlap_intervals(mut intervals: Vec>) -> i32 { if intervals.is_empty() { return 0; } @@ -468,4 +468,3 @@ public class Solution - diff --git a/problems/0455.分发饼干.md b/problems/0455.分发饼干.md index 778adc94..6ae206db 100644 --- a/problems/0455.分发饼干.md +++ b/problems/0455.分发饼干.md @@ -229,7 +229,7 @@ func findContentChildren(g []int, s []int) int { ### Rust ```rust -pub fn find_content_children(mut children: Vec, mut cookie: Vec) -> i32 { +pub fn find_content_children(mut children: Vec, mut cookies: Vec) -> i32 { children.sort(); cookies.sort();