Merge pull request #1558 from 383494/patch-1

fix: typo in basic/trait/advance-trait.md
pull/1569/head
Sunface 2 months ago committed by GitHub
commit cd3142c92a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -84,7 +84,7 @@ fn difference<C: Container>(container: &C) {}
关联类型还可以被其它特征进行约束,例如: 关联类型还可以被其它特征进行约束,例如:
```rust ```rust
trait Container{ trait Container{
type ADisplay; type A: Display;
type B; type B;
fn contains(&self, a: &Self::A, b: &Self::B) -> bool; fn contains(&self, a: &Self::A, b: &Self::B) -> bool;
} }

Loading…
Cancel
Save