Skip to content

Commit

Permalink
Improve an example
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatsov committed Mar 26, 2020
1 parent 3a20519 commit f0bf064
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ $ git config --global core.autocrlf true

=== Should I Terminate Files with a Newline? [[newline-eof]]

End each file with a newline.
End each file with a newline.

TIP: This should be done by through editor configuration, not manually.

Expand Down Expand Up @@ -228,6 +228,12 @@ Whitespace might be (mostly) irrelevant to the Ruby interpreter, but its proper

[source,ruby]
----
# bad
sum=1+2
a,b=1,2
class FooError<StandardError;end
# good
sum = 1 + 2
a, b = 1, 2
class FooError < StandardError; end
Expand Down

0 comments on commit f0bf064

Please sign in to comment.