File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -575,7 +575,7 @@ where
575575pub ( 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments