mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Fix three more (reverse) “a”/“an” typos
This commit is contained in:
parent
5f5d45468d
commit
75073451c6
2 changed files with 3 additions and 3 deletions
|
@ -331,7 +331,7 @@ fn should_hide_param_name_hint(
|
|||
// - exact argument<->parameter match(ignoring leading underscore) or parameter is a prefix/suffix
|
||||
// of argument with _ splitting it off
|
||||
// - param starts with `ra_fixture`
|
||||
// - param is a well known name in an unary function
|
||||
// - param is a well known name in a unary function
|
||||
|
||||
let param_name = param_name.trim_start_matches('_');
|
||||
if param_name.is_empty() {
|
||||
|
@ -369,7 +369,7 @@ fn is_argument_similar_to_param_name(argument: &ast::Expr, param_name: &str) ->
|
|||
argument == param_name
|
||||
}
|
||||
|
||||
/// Hide the parameter name of an unary function if it is a `_` - prefixed suffix of the function's name, or equal.
|
||||
/// Hide the parameter name of a unary function if it is a `_` - prefixed suffix of the function's name, or equal.
|
||||
///
|
||||
/// `fn strip_suffix(suffix)` will be hidden.
|
||||
/// `fn stripsuffix(suffix)` will not be hidden.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue