Skip to content

Commit cce0d50

Browse files
authored
Rollup merge of #94960 - codehorseman:master, r=oli-obk
Fix many spelling mistakes Signed-off-by: codehorseman <[email protected]>
2 parents c1d351f + c0861d3 commit cce0d50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lists.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ where
575575
pub(crate) fn extract_pre_comment(pre_snippet: &str) -> (Option<String>, ListItemCommentStyle) {
576576
let trimmed_pre_snippet = pre_snippet.trim();
577577
// Both start and end are checked to support keeping a block comment inline with
578-
// the item, even if there are preceeding line comments, while still supporting
578+
// the item, even if there are preceding line comments, while still supporting
579579
// a snippet that starts with a block comment but also contains one or more
580580
// trailing single line comments.
581581
// https://github.com/rust-lang/rustfmt/issues/3025

src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ fn rewrite_segment(
251251
match **args {
252252
ast::GenericArgs::AngleBracketed(ref data) if !data.args.is_empty() => {
253253
// HACK: squeeze out the span between the identifier and the parameters.
254-
// The hack is requried so that we don't remove the separator inside macro calls.
254+
// The hack is required so that we don't remove the separator inside macro calls.
255255
// This does not work in the presence of comment, hoping that people are
256256
// sane about where to put their comment.
257257
let separator_snippet = context

0 commit comments

Comments
 (0)