Skip to content

Commit 6a5a600

Browse files
committed
Indicate the anonymous lifetime of the GroupBy and GroupByMut
1 parent 0ebf8e1 commit 6a5a600

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/slice/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ impl<T> [T] {
12331233
/// ```
12341234
#[unstable(feature = "slice_group_by", issue = "none")]
12351235
#[inline]
1236-
pub fn group_by<F>(&self, pred: F) -> GroupBy<T, F>
1236+
pub fn group_by<F>(&self, pred: F) -> GroupBy<'_, T, F>
12371237
where F: FnMut(&T, &T) -> bool
12381238
{
12391239
GroupBy::new(self, pred)
@@ -1262,7 +1262,7 @@ impl<T> [T] {
12621262
/// ```
12631263
#[unstable(feature = "slice_group_by", issue = "none")]
12641264
#[inline]
1265-
pub fn group_by_mut<F>(&mut self, pred: F) -> GroupByMut<T, F>
1265+
pub fn group_by_mut<F>(&mut self, pred: F) -> GroupByMut<'_, T, F>
12661266
where F: FnMut(&T, &T) -> bool
12671267
{
12681268
GroupByMut::new(self, pred)

0 commit comments

Comments
 (0)