From a3230d60c287eed2b9323179963b08ea4c0a6835 Mon Sep 17 00:00:00 2001 From: Denton Liu Date: Thu, 5 May 2016 14:40:35 -0400 Subject: Made the style consistent --- docs/style-guide.rst | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'docs/style-guide.rst') diff --git a/docs/style-guide.rst b/docs/style-guide.rst index c36efe2c..0ee2dddc 100644 --- a/docs/style-guide.rst +++ b/docs/style-guide.rst @@ -157,15 +157,23 @@ Avoid extraneous whitespace in the following situations: * Immediately inside parenthesis, brackets or braces. -Yes: `spam(ham[1], Coin({name: "ham"}));` +Yes:: + + spam(ham[1], Coin({name: "ham"})); + +No:: -No: `spam( ham[ 1 ], Coin( { name: "ham" } ) );` + spam( ham[ 1 ], Coin( { name: "ham" } ) );` * Immediately before a comma, semicolon: -Yes: `function spam(uint i, Coin coin);` +Yes:: + + function spam(uint i, Coin coin); + +No:: -No: `function spam(uint i , Coin coin) ;` + function spam(uint i , Coin coin) ; * More than one space around an assignment or other operator to align with another: -- cgit