Skip to content

Commit

Permalink
CamelCase -> UpperCamelCase
Browse files Browse the repository at this point in the history
The compiler will raise a warning unless it is UpperCamelCase. Since the warning is explicit about mentioning "upper", maybe the guide should too?
  • Loading branch information
cawibo authored Jan 9, 2020
1 parent 1d59403 commit 2d39e28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/alias.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Aliasing

The `type` statement can be used to give a new name to an existing type. Types
must have `CamelCase` names, or the compiler will raise a warning. The
must have `UpperCamelCase` names, or the compiler will raise a warning. The
exception to this rule are the primitive types: `usize`, `f32`, etc.

```rust,editable
Expand Down Expand Up @@ -33,4 +33,4 @@ is an alias for the `Result<T, IoError>` type.

### See also:

[Attributes](../attribute.md)
[Attributes](../attribute.md)

0 comments on commit 2d39e28

Please sign in to comment.