diff --git a/README.md b/README.md index 9f8c01c5e..ffd8e93f3 100644 --- a/README.md +++ b/README.md @@ -420,8 +420,8 @@ Translations of the guide are available in the following languages: end ``` - While several Ruby books suggest the first style, the second is much more prominent - in practice (and arguably a bit more readable). + While several Ruby books suggest the first style, the second is much more + prominent in practice (and arguably a bit more readable). * Avoid line continuation `\` where not required. In practice, avoid using @@ -1115,9 +1115,9 @@ Translations of the guide are available in the following languages: names.select { |name| name.start_with?('S') }.map { |name| name.upcase } ``` - Some will argue that multiline chaining would look OK with the use of {...}, but they should - ask themselves - is this code really readable and can the blocks' contents be extracted into - nifty methods? + Some will argue that multiline chaining would look OK with the use of {...}, + but they should ask themselves - is this code really readable and can the + blocks' contents be extracted into nifty methods? * Consider using explicit block argument to avoid writing block literal that @@ -2649,7 +2649,7 @@ Translations of the guide are available in the following languages: rescue # .. handle error ensure - f.close unless f.nil? + f.close if f end ```