Skip to content

Commit 6fb17c4

Browse files
authored
Merge pull request #1896 from spinda/fix-typos
Fix typos
2 parents c166004 + b2d10e3 commit 6fb17c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2786,7 +2786,7 @@ where
27862786
{
27872787
debug!("rewrite_tuple {:?}", shape);
27882788
if context.use_block_indent() {
2789-
// We use the same rule as funcation call for rewriting tuple.
2789+
// We use the same rule as function calls for rewriting tuples.
27902790
let force_trailing_comma = if context.inside_macro {
27912791
span_ends_with_comma(context, span)
27922792
} else {

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ impl FormattingError {
486486
fn msg_suffix(&self) -> String {
487487
match self.kind {
488488
ErrorKind::LineOverflow(..) if self.is_comment => format!(
489-
"use `error_on_lineoverflow_comments = false` to suppress \
489+
"use `error_on_line_overflow_comments = false` to suppress \
490490
the warning against line comments\n",
491491
),
492492
_ => String::from(""),

0 commit comments

Comments
 (0)