From 6fe3eb3a335b9bfd586d923769f43aacd6f964af Mon Sep 17 00:00:00 2001 From: Milo Moisson Date: Mon, 20 Feb 2023 16:40:46 +0100 Subject: [PATCH 1/2] docs: wrong naming convention in struct keyword doc --- std/src/keyword_docs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/src/keyword_docs.rs b/std/src/keyword_docs.rs index e35145c4a..ea9d5bacc 100644 --- a/std/src/keyword_docs.rs +++ b/std/src/keyword_docs.rs @@ -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 PascalCase, 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. /// From 0892ad7a7efb31bbd8c584b5194519428482d024 Mon Sep 17 00:00:00 2001 From: Milo Moisson Date: Mon, 20 Feb 2023 23:44:21 +0100 Subject: [PATCH 2/2] use UpperCamelCase --- std/src/keyword_docs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/src/keyword_docs.rs b/std/src/keyword_docs.rs index ea9d5bacc..203c490fa 100644 --- a/std/src/keyword_docs.rs +++ b/std/src/keyword_docs.rs @@ -1568,7 +1568,7 @@ mod static_keyword {} /// /// # Style conventions /// -/// Structs are always written in PascalCase, 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. ///