did_you_mean returns just the word matches (#2595)

This commit is contained in:
Chris Gillespie
2020-09-23 20:56:19 -07:00
committed by GitHub
parent 75f8247af1
commit bd9e598bf0
4 changed files with 65 additions and 15 deletions

View File

@ -109,7 +109,7 @@ impl Inc {
) {
Some(suggestions) => ShellError::labeled_error(
"Unknown column",
format!("did you mean '{}'?", suggestions[0].1),
format!("did you mean '{}'?", suggestions[0]),
span_for_spanned_list(fields.iter().map(|p| p.span)),
),
None => ShellError::labeled_error(