Clarify error message for let in pipeline (#5677)

Refer to the suggestion as an assignment
This commit is contained in:
Stefan Holderbach 2022-05-30 09:26:33 +02:00 committed by GitHub
parent eb12fffbc6
commit e2c015f725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ pub enum ParseError {
code(nu::parser::unexpected_keyword),
url(docsrs),
help(
"Assigning '{0}' to '{1}' does not produce a value to be piped. If the pipeline is meant to apply to '{0}' by itself, use 'let {1} = ({0} | ...)'."
"Assigning '{0}' to '{1}' does not produce a value to be piped. If the pipeline result is meant to be assigned to '{1}', use 'let {1} = ({0} | ...)'."
)
)]
LetInPipeline(String, String, #[label("let in pipeline")] Span),