Skip to content

Commit 18dc933

Browse files
authored
Update c_sharp_style_guide.rst
1 parent 3898c7e commit 18dc933

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/scripting/c_sharp/c_sharp_style_guide.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ Insert a space:
153153
* Around a colon in a type declaration.
154154
* Around a lambda arrow.
155155
* After a single-line comment symbol (``//``), and before it if used at the end of a line.
156+
* After the opening brace, and before the closing brace in a single line initializer.
156157

157158
Do not use a space:
158159

159160
* After type cast parentheses.
160-
* Within single line initializer braces.
161161

162162
The following example shows a proper use of spaces, according to some of the above mentioned conventions:
163163

@@ -174,7 +174,7 @@ The following example shows a proper use of spaces, according to some of the abo
174174
175175
public void MyMethod()
176176
{
177-
int[] values = {1, 2, 3, 4}; // No space within initializer brackets.
177+
int[] values = { 1, 2, 3, 4 };
178178
int sum = 0;
179179
180180
// Single line comment.

0 commit comments

Comments
 (0)