Skip to content

Commit 7dcf7fe

Browse files
authored
Rollup merge of rust-lang#108272 - MrNossiom:master, r=thomcc
docs: wrong naming convention in struct keyword doc Noticed that the naming convention mentioned is not the right one. As far as I know, PacalCase is the naming convention used for structs names. PacalCase is not the same as camelCase
2 parents 076e627 + 18f5f0c commit 7dcf7fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/keyword_docs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,7 @@ mod static_keyword {}
15681568
///
15691569
/// # Style conventions
15701570
///
1571-
/// Structs are always written in CamelCase, with few exceptions. While the trailing comma on a
1571+
/// Structs are always written in UpperCamelCase, with few exceptions. While the trailing comma on a
15721572
/// struct's list of fields can be omitted, it's usually kept for convenience in adding and
15731573
/// removing fields down the line.
15741574
///

0 commit comments

Comments
 (0)