mirror of https://github.com/rust-lang/reference
reference: add trailing commas
This commit is contained in:
parent
2baf3ec3b1
commit
ffe0de4069
|
@ -2283,7 +2283,7 @@ the `PartialEq` or `Clone` constraints for the appropriate `impl`:
|
|||
#[derive(PartialEq, Clone)]
|
||||
struct Foo<T> {
|
||||
a: i32,
|
||||
b: T
|
||||
b: T,
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -3896,7 +3896,7 @@ Coercion is allowed between the following types:
|
|||
use std::ops::Deref;
|
||||
|
||||
struct CharContainer {
|
||||
value: char
|
||||
value: char,
|
||||
}
|
||||
|
||||
impl Deref for CharContainer {
|
||||
|
|
Loading…
Reference in New Issue