mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 02:52:11 +00:00
fix_typo
This commit is contained in:
parent
ea87eab4ff
commit
c14cdcf5cc
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ fn find_from_definition(
|
||||||
|
|
||||||
let (search_method, search_trait, return_type) = match method_call.name_ref()?.text().as_str() {
|
let (search_method, search_trait, return_type) = match method_call.name_ref()?.text().as_str() {
|
||||||
"into" => ("from", FamousDefs(sema, krate).core_convert_From()?, return_type),
|
"into" => ("from", FamousDefs(sema, krate).core_convert_From()?, return_type),
|
||||||
// If the mthod is try_into() or parse(), return_type is Result<T, Error>.
|
// If the method is try_into() or parse(), return_type is Result<T, Error>.
|
||||||
// Get T from type arguments of Result<T, Error>.
|
// Get T from type arguments of Result<T, Error>.
|
||||||
"try_into" => (
|
"try_into" => (
|
||||||
"try_from",
|
"try_from",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue