Skip to content

Commit 4dcc8a8

Browse files
authored
Simplified and unified sentence structure of the naming convention logic
1 parent 07f50c0 commit 4dcc8a8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

doc/langref.html.in

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7105,10 +7105,12 @@ coding style.
71057105
</p>
71067106
<ul>
71077107
<li>
7108-
If {#syntax#}x{#endsyntax#} is a {#syntax#}type{#endsyntax#} (or {#syntax#}type{#endsyntax#} alias)
7109-
then {#syntax#}x{#endsyntax#} should be {#syntax#}TitleCase{#endsyntax#}, unless it
7110-
is a {#syntax#}struct{#endsyntax#} with 0 fields and is never meant to be instantiated,
7111-
in which case it is considered to be a "namespace" and uses {#syntax#}snake_case{#endsyntax#}.
7108+
If {#syntax#}x{#endsyntax#} is a {#syntax#}struct{#endsyntax#} with 0 fields and is never meant to be instantiated
7109+
then {#syntax#}x{#endsyntax#} is considered to be a "namespace" and should be {#syntax#}snake_case{#endsyntax#}.
7110+
</li>
7111+
<li>
7112+
If {#syntax#}x{#endsyntax#} is a {#syntax#}type{#endsyntax#} or {#syntax#}type{#endsyntax#} alias
7113+
then {#syntax#}x{#endsyntax#} should be {#syntax#}TitleCase{#endsyntax#}.
71127114
</li>
71137115
<li>
71147116
If {#syntax#}x{#endsyntax#} is callable, and {#syntax#}x{#endsyntax#}'s return type is

0 commit comments

Comments
 (0)