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.
2 parents b0de3b8 + 0d767df commit fa2fea3Copy full SHA for fa2fea3
packages/go-gen/src/utils.rs
@@ -2,7 +2,7 @@
2
///
3
/// It starts with the full string and ends with the last character.
4
/// It is a double-ended iterator and can be reversed.
5
-pub fn suffixes(s: &str) -> impl Iterator<Item = &str> + DoubleEndedIterator {
+pub fn suffixes(s: &str) -> impl DoubleEndedIterator<Item = &str> {
6
s.char_indices().map(|(pos, _)| &s[pos..])
7
}
8
0 commit comments