Skip to content

Commit b2e1ede

Browse files
committed
Change Tokio example description to Core
1 parent 94387ef commit b2e1ede

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

book/src/development/trait_checking.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ implementation.
7878

7979
> **Note**: This approach should be avoided if possible, the best thing to do would be to make a PR to [`rust-lang/rust`][rust].
8080
81-
Below, we check if the given `expr` implements `tokio`'s
82-
[`AsyncReadExt`][AsyncReadExt] trait:
81+
Below, we check if the given `expr` implements the `Iterator`'s trait method `cloned` :
8382

8483
```rust
8584
use clippy_utils::{match_trait_method, paths};
@@ -95,7 +94,6 @@ impl LateLintPass<'_> for CheckTokioAsyncReadExtTrait {
9594
}
9695
```
9796

98-
[AsyncReadExt]: https://docs.rs/tokio/latest/tokio/io/trait.AsyncReadExt.html
9997
[DefId]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/def_id/struct.DefId.html
10098
[diagnostic_items]: https://rustc-dev-guide.rust-lang.org/diagnostics/diagnostic-items.html
10199
[lang_items]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/lang_items/struct.LanguageItems.html
@@ -105,4 +103,4 @@ impl LateLintPass<'_> for CheckTokioAsyncReadExtTrait {
105103
[symbol_index]: https://doc.rust-lang.org/beta/nightly-rustc/rustc_span/symbol/sym/index.html
106104
[TyCtxt]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.TyCtxt.html
107105
[using_diagnostic_items]: https://rustc-dev-guide.rust-lang.org/diagnostics/diagnostic-items.html#using-diagnostic-items
108-
[rust]: https://github.com/rust-lang/rust
106+
[rust]: https://github.com/rust-lang/rust

0 commit comments

Comments
 (0)