Skip to content

Commit d448498

Browse files
authored
fix typo
1 parent e60a32f commit d448498

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basic/trait/advance-trait.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ fn difference<C: Container>(container: &C) {}
8484
关联类型还可以被其它特征进行约束,例如:
8585
```rust
8686
trait Container{
87-
type ADisplay;
87+
type A: Display;
8888
type B;
8989
fn contains(&self, a: &Self::A, b: &Self::B) -> bool;
9090
}

0 commit comments

Comments
 (0)