diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2024-05-28 15:31:26 +0200 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2024-05-28 15:31:26 +0200 |
| commit | eb0ed28cedc2f5d96695d0ccd75ff831ec221a13 (patch) | |
| tree | f176fcacd96df47b7261dbed7fab578de4c76b27 | |
| parent | f989d2f62500df1696eb797d8800a705293b43b9 (diff) | |
| download | rust-eb0ed28cedc2f5d96695d0ccd75ff831ec221a13.tar.gz rust-eb0ed28cedc2f5d96695d0ccd75ff831ec221a13.zip | |
Remove usage of `isize` in example
`isize` is a rare integer type, replace it with a more common one.
| -rw-r--r-- | compiler/rustc_lint/src/builtin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index ba42eae3441..6fd416ef517 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -142,7 +142,7 @@ declare_lint! { /// ```rust,compile_fail /// #![deny(box_pointers)] /// struct Foo { - /// x: Box<isize>, + /// x: Box<i32>, /// } /// ``` /// |
