mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
edit: change 'Length' to 'Len'
This commit is contained in:
parent
f6fc109fcb
commit
df63300092
3 changed files with 5 additions and 5 deletions
|
@ -75,7 +75,7 @@ pub(crate) enum Op {
|
|||
Index {
|
||||
depth: usize,
|
||||
},
|
||||
Length {
|
||||
Len {
|
||||
depth: usize,
|
||||
},
|
||||
Count {
|
||||
|
@ -345,7 +345,7 @@ fn parse_metavar_expr(new_meta_vars: bool, src: &mut TtIter<'_, Span>) -> Result
|
|||
Op::Ignore { name: ident.text.clone(), id: ident.span }
|
||||
}
|
||||
"index" => Op::Index { depth: parse_depth(&mut args)? },
|
||||
"length" => Op::Length { depth: parse_depth(&mut args)? },
|
||||
"len" => Op::Len { depth: parse_depth(&mut args)? },
|
||||
"count" => {
|
||||
if new_meta_vars {
|
||||
args.expect_dollar()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue