update zh/advanced-traits.md

This commit is contained in:
sunface
2022-03-08 17:18:56 +08:00
parent 2048a2cfc6
commit a11ae7e9d2
2 changed files with 7 additions and 8 deletions

View File

@ -94,7 +94,7 @@ fn main() {
```
## Fully Qualified Syntax
othing in Rust prevents a trait from having a method with the same name as another traits method, nor does Rust prevent you from implementing both traits on one type. Its also possible to implement a method directly on the type with the same name as methods from traits.
Nothing in Rust prevents a trait from having a method with the same name as another traits method, nor does Rust prevent you from implementing both traits on one type. Its also possible to implement a method directly on the type with the same name as methods from traits.
When calling methods with the same name, we have to use Fully Qualified Syntax.