about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2024-05-28 15:31:26 +0200
committerTobias Bucher <tobiasbucher5991@gmail.com>2024-05-28 15:31:26 +0200
commiteb0ed28cedc2f5d96695d0ccd75ff831ec221a13 (patch)
treef176fcacd96df47b7261dbed7fab578de4c76b27
parentf989d2f62500df1696eb797d8800a705293b43b9 (diff)
downloadrust-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.rs2
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>,
     /// }
     /// ```
     ///