We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ebf8e1 commit 6a5a600Copy full SHA for 6a5a600
library/core/src/slice/mod.rs
@@ -1233,7 +1233,7 @@ impl<T> [T] {
1233
/// ```
1234
#[unstable(feature = "slice_group_by", issue = "none")]
1235
#[inline]
1236
- pub fn group_by<F>(&self, pred: F) -> GroupBy<T, F>
+ pub fn group_by<F>(&self, pred: F) -> GroupBy<'_, T, F>
1237
where F: FnMut(&T, &T) -> bool
1238
{
1239
GroupBy::new(self, pred)
@@ -1262,7 +1262,7 @@ impl<T> [T] {
1262
1263
1264
1265
- pub fn group_by_mut<F>(&mut self, pred: F) -> GroupByMut<T, F>
+ pub fn group_by_mut<F>(&mut self, pred: F) -> GroupByMut<'_, T, F>
1266
1267
1268
GroupByMut::new(self, pred)
0 commit comments