Skip to content

Commit

Permalink
Change camel case warning to upper camel case
Browse files Browse the repository at this point in the history
Rust structs should be named in upper camel case aka PascalCase. “Upper camel case” was decided upon as the preferred phrase over PascalCase per: rust-lang/rfcs#2389
  • Loading branch information
tcullum-gpsw authored Jan 4, 2019
1 parent 071363d commit 7ef4440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/ui/lint/lint-group-nonstandard-style.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
warning: type `snake_case` should have a camel case name such as `SnakeCase`
warning: type `snake_case` should have an upper camel case name such as `SnakeCase`
--> $DIR/lint-group-nonstandard-style.rs:22:9
|
LL | struct snake_case; //~ WARN should have a camel
LL | struct snake_case; //~ WARN should have an upper camel
| ^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
Expand Down

0 comments on commit 7ef4440

Please sign in to comment.