Skip to content

Commit

Permalink
Rollup merge of #108272 - MrNossiom:master, r=thomcc
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Dylan-DPC committed Feb 21, 2023
2 parents 9333fe5 + 0892ad7 commit 7919e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/src/keyword_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,7 @@ mod static_keyword {}
///
/// # Style conventions
///
/// Structs are always written in CamelCase, with few exceptions. While the trailing comma on a
/// Structs are always written in UpperCamelCase, with few exceptions. While the trailing comma on a
/// struct's list of fields can be omitted, it's usually kept for convenience in adding and
/// removing fields down the line.
///
Expand Down

0 comments on commit 7919e47

Please sign in to comment.