Skip to content

Commit 0ba39b2

Browse files
committed
Implement suggestion from code review (avoid empty function body in the code examples)
1 parent c58487e commit 0ba39b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Standards/Generic/Docs/Functions/OpeningFunctionBraceKernighanRitchieStandard.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
<code title="Valid: Opening brace on the same line.">
1010
<![CDATA[
1111
function fooFunction($arg1, $arg2 = '')<em> {</em>
12+
// Do something.
1213
}
1314
]]>
1415
</code>
1516
<code title="Invalid: Opening brace on the next line.">
1617
<![CDATA[
1718
function fooFunction($arg1, $arg2 = '')
1819
<em>{</em>
20+
// Do something.
1921
}
2022
]]>
2123
</code>

0 commit comments

Comments
 (0)