Skip to content

Commit 378cc98

Browse files
committed
syntax: is_named_argument -> is_named_param.
1 parent f290467 commit 378cc98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ impl<'a> Parser<'a> {
954954
}
955955
}
956956

957-
fn is_named_argument(&self) -> bool {
957+
fn is_named_param(&self) -> bool {
958958
let offset = match self.token.kind {
959959
token::Interpolated(ref nt) => match **nt {
960960
token::NtPat(..) => return self.look_ahead(1, |t| t == &token::Colon),
@@ -993,7 +993,7 @@ impl<'a> Parser<'a> {
993993
}
994994

995995
let is_name_required = is_name_required(&self.token);
996-
let (pat, ty) = if is_name_required || self.is_named_argument() {
996+
let (pat, ty) = if is_name_required || self.is_named_param() {
997997
debug!("parse_param_general parse_pat (is_name_required:{})", is_name_required);
998998

999999
let pat = self.parse_fn_param_pat()?;

0 commit comments

Comments
 (0)