Simplified and unified sentence structure of the naming convention logic

This commit is contained in:
Zirunis 2025-11-09 04:44:05 +01:00 committed by GitHub
parent 07f50c0351
commit 4dcc8a80a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7105,10 +7105,12 @@ coding style.
</p> </p>
<ul> <ul>
<li> <li>
If {#syntax#}x{#endsyntax#} is a {#syntax#}type{#endsyntax#} (or {#syntax#}type{#endsyntax#} alias) If {#syntax#}x{#endsyntax#} is a {#syntax#}struct{#endsyntax#} with 0 fields and is never meant to be instantiated
then {#syntax#}x{#endsyntax#} should be {#syntax#}TitleCase{#endsyntax#}, unless it then {#syntax#}x{#endsyntax#} is considered to be a "namespace" and should be {#syntax#}snake_case{#endsyntax#}.
is a {#syntax#}struct{#endsyntax#} with 0 fields and is never meant to be instantiated, </li>
in which case it is considered to be a "namespace" and uses {#syntax#}snake_case{#endsyntax#}. <li>
If {#syntax#}x{#endsyntax#} is a {#syntax#}type{#endsyntax#} or {#syntax#}type{#endsyntax#} alias
then {#syntax#}x{#endsyntax#} should be {#syntax#}TitleCase{#endsyntax#}.
</li> </li>
<li> <li>
If {#syntax#}x{#endsyntax#} is callable, and {#syntax#}x{#endsyntax#}'s return type is If {#syntax#}x{#endsyntax#} is callable, and {#syntax#}x{#endsyntax#}'s return type is