File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -575,7 +575,7 @@ where
575
575
pub ( crate ) fn extract_pre_comment ( pre_snippet : & str ) -> ( Option < String > , ListItemCommentStyle ) {
576
576
let trimmed_pre_snippet = pre_snippet. trim ( ) ;
577
577
// 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
579
579
// a snippet that starts with a block comment but also contains one or more
580
580
// trailing single line comments.
581
581
// https://github.com/rust-lang/rustfmt/issues/3025
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ fn rewrite_segment(
251
251
match * * args {
252
252
ast:: GenericArgs :: AngleBracketed ( ref data) if !data. args . is_empty ( ) => {
253
253
// 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.
255
255
// This does not work in the presence of comment, hoping that people are
256
256
// sane about where to put their comment.
257
257
let separator_snippet = context
You can’t perform that action at this time.
0 commit comments