Skip to content

Commit bb81a57

Browse files
committed
Merge pull request #30 from rktoomey/patch-1
Update README.rst
2 parents bcff7e5 + b94274b commit bb81a57

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

README.rst

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -254,31 +254,34 @@ compactControlReadability
254254

255255
Default: ``false``
256256

257-
When ``compactControlReadability`` is ``true``, ``if``/``else`` and
257+
When ``compactControlReadability`` is ``true``, then ``if``/``else`` and
258258
``try``/``catch``/``finally`` control structures will be formatted
259-
using `Compact Control Readability`_ style:
259+
using `Compact Control Readability`_ style
260260

261-
.. _Compact Control Readability: http://en.wikipedia.org/wiki/Indent_style#Compact_Control_Readability_style
261+
.. _Compact Control Readability: http://en.wikipedia.org/wiki/Indent_style#Variant:_Stroustrup
262+
263+
::
262264

263265
if (x == y) {
264266
foo()
265-
}
267+
}
266268
else if (y == z) {
267269
bar()
268-
}
270+
}
269271
else {
270272
baz()
271-
}
273+
}
272274

273275
try {
274276
foo()
275-
}
277+
}
276278
catch {
277279
case _ => bar()
278-
}
280+
}
279281
finally {
280282
baz()
281-
}
283+
}
284+
282285

283286
compactStringConcatenation
284287
~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)