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 3298b9f commit 7bd94e0Copy full SHA for 7bd94e0
src/libsyntax_ext/format_foreign.rs
@@ -329,9 +329,7 @@ pub mod printf {
329
_ => {/* fall-through */},
330
}
331
332
- //let _ = Cur::new_at_start_with_pos(&s[..], start);
333
- //Cur::new_at_start(&s[start..])
334
- Cur::new_at_start_with_pos(&s[..], start)
+ Cur::new_at(&s[..], start)
335
};
336
337
// This is meant to be a translation of the following regex:
@@ -970,7 +968,7 @@ mod strcursor {
970
968
971
969
972
973
- pub fn new_at_start_with_pos(s: &'a str, at: usize) -> StrCursor<'a> {
+ pub fn new_at(s: &'a str, at: usize) -> StrCursor<'a> {
974
StrCursor {
975
s,
976
at,
0 commit comments