1
Fork 0

Clarify that repeat count must be positive

This commit is contained in:
Smitty 2021-12-27 12:31:40 -05:00
parent 31731511c0
commit 9702348957
3 changed files with 9 additions and 9 deletions

View file

@ -154,7 +154,7 @@ pub fn expand_concat_bytes(
}
}
} else {
cx.span_err(count.value.span, "repeat count is not a number");
cx.span_err(count.value.span, "repeat count is not a positive number");
}
}
ast::ExprKind::Lit(ref lit) => match lit.kind {