Skip to content

Commit cd3142c

Browse files
authored
Merge pull request #1558 from 383494/patch-1
fix: typo in basic/trait/advance-trait.md
2 parents 2aefc77 + d448498 commit cd3142c

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)