mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 11:05:40 +02:00
did_you_mean returns just the word matches (#2595)
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user