Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions exercises/02_lifetimes_explained/exercise/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ pub fn identity(number: &i32) -> &i32 {
number
}

/// In this case, we know that if the option is `Some`, it will
/// always contain a reference to `number`.
///
/// Recall that this function returns a vector of slices of
/// `text`, split by `delimiter`.
///
Expand Down
3 changes: 0 additions & 3 deletions exercises/02_lifetimes_explained/solutions/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ pub fn only_if_greater<'a, 'b>(number: &'a i32, greater_than: &'b i32) -> Option
}
}

/// In this case, we know that if the option is `Some`, it will
/// always contain a reference to `number`.
///
/// Recall that this function returns a vector of slices of
/// `text`, split by `delimiter`.
///
Expand Down