Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/reference
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4ea7c5def38ac81df33a9e48e5637a82a5ac404d
Choose a base ref
...
head repository: rust-lang/reference
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9f0cc13ffcd27c1fbe1ab766a9491e15ddcf4d19
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Oct 31, 2022

  1. Add a comma

    EFanZh authored Oct 31, 2022
    Copy the full SHA
    8a86959 View commit details
  2. Merge pull request #1289 from EFanZh/patch-1

    Add a comma
    ehuss authored Oct 31, 2022
    Copy the full SHA
    9f0cc13 View commit details
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/items/generics.md
2 changes: 1 addition & 1 deletion src/items/generics.md
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ instances of the item must be instantiated with a value of the given type.
<!-- TODO: update above to say "introduces a name in the [value namespace]"
once namespaces are added. -->

The only allowed types of const parameters are `u8`, `u16`, `u32`, `u64`, `u128`, `usize`
The only allowed types of const parameters are `u8`, `u16`, `u32`, `u64`, `u128`, `usize`,
`i8`, `i16`, `i32`, `i64`, `i128`, `isize`, `char` and `bool`.

Const parameters can be used anywhere a [const item] can be used, with the