Use a semicolon instead of a dash in lint note

This commit is contained in:
Aaron Hill 2020-11-07 20:39:35 -05:00
parent e4e9bb4a24
commit bd3f3fa32a
No known key found for this signature in database
GPG key ID: B4087E510E98B164
2 changed files with 5 additions and 5 deletions

View file

@ -103,7 +103,7 @@ impl<'a, 'tcx> Visitor<'tcx> for ConstMutationChecker<'a, 'tcx> {
if let Some(def_id) = self.is_const_item_without_destructor(lhs.local) {
self.lint_const_item_usage(&lhs, def_id, loc, |lint| {
let mut lint = lint.build("attempting to modify a `const` item");
lint.note("each usage of a `const` item creates a new temporary - the original `const` item will not be modified");
lint.note("each usage of a `const` item creates a new temporary; the original `const` item will not be modified");
lint
})
}