From 2acbaf405ca0e12d0bc6c36b72faac90c831de47 Mon Sep 17 00:00:00 2001 From: Chad Stearns Date: Sun, 8 Dec 2019 21:55:04 -0500 Subject: [PATCH] Pluralized variable name --- src/fmt/expr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fmt/expr.rs b/src/fmt/expr.rs index 50671fa6a6..a8511c4db1 100644 --- a/src/fmt/expr.rs +++ b/src/fmt/expr.rs @@ -248,7 +248,7 @@ pub fn empty_line_before_expr<'a>(expr: &'a Expr<'a>) -> bool { match expr { SpaceBefore(_, spaces) => { - let number_of_newline = spaces.iter().fold(0, |acc, comment_or_newline| { + let number_of_newlines = spaces.iter().fold(0, |acc, comment_or_newline| { match comment_or_newline { CommentOrNewline::Newline => { acc + 1 @@ -259,7 +259,7 @@ pub fn empty_line_before_expr<'a>(expr: &'a Expr<'a>) -> bool { } }); - let enough_newlines = number_of_newline > 1; + let enough_newlines = number_of_newlines > 1; enough_newlines },