Rollup merge of #119232 - Takashiidobe:fix-doc-typos, r=JohnTitor

Fix doc typos

This PR fixes some typos I found while trawling through the rust source.
This commit is contained in:
Matthias Krüger 2023-12-23 16:23:55 +01:00 committed by GitHub
commit ea55fd8c7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View file

@ -494,7 +494,7 @@ pub fn check(path: &Path, bad: &mut bool) {
let mut err = |_| {
tidy_error!(bad, "{}: leading newline", file.display());
};
suppressible_tidy_err!(err, skip_leading_newlines, "mising leading newline");
suppressible_tidy_err!(err, skip_leading_newlines, "missing leading newline");
}
let mut err = |msg: &str| {
tidy_error!(bad, "{}: {}", file.display(), msg);