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 7533a21 commit 0d767dfCopy full SHA for 0d767df
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