Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7b20223

Browse files
committed
Rename
1 parentf8da501 commit7b20223

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎compiler/parser/src/fstring.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@ use crate::{
77
use std::{iter, mem, str};
88

99
structFStringParser<'a>{
10-
source: iter::Peekable<str::Chars<'a>>,
10+
chars: iter::Peekable<str::Chars<'a>>,
1111
str_start:Location,
1212
str_end:Location,
1313
}
1414

1515
impl<'a>FStringParser<'a>{
1616
fnnew(source:&'astr,str_start:Location,str_end:Location) ->Self{
1717
Self{
18-
source: source.chars().peekable(),
18+
chars: source.chars().peekable(),
1919
str_start,
2020
str_end,
2121
}
2222
}
2323

2424
fnnext_char(&mutself) ->Option<char>{
25-
self.source.next()
25+
self.chars.next()
2626
}
2727

2828
fnpeek(&mutself) ->Option<&char>{
29-
self.source.peek()
29+
self.chars.peek()
3030
}
3131

3232
#[inline]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp