styleguide icon indicating copy to clipboard operation
styleguide copied to clipboard

Example Function 'CalculateSampleCovariance' in the R Style Guide mixes use and omission of curly braces for single-statement blocks.

Open GoogleCodeExporter opened this issue 10 years ago • 1 comments

What steps will reproduce the problem?
The function definition is at 
http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html

What is the expected output? What do you see instead?
As stated earlier in the style guide, curly braces should be used or not used 
consistently when dealing with single-statement blocks.  In the example 
function 'CalculateSampleCovariance', curly braces are used in the 
single-statement blocks following the first two if statements and not the 
single-statement block following the third.

Original issue reported on code.google.com by [email protected] on 14 Aug 2010 at 3:47

GoogleCodeExporter avatar May 20 '15 19:05 GoogleCodeExporter