]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/large_enum_variant.rs
Auto merge of #100210 - mystor:proc_macro_diag_struct, r=eddyb
[rust.git] / src / tools / clippy / clippy_lints / src / large_enum_variant.rs
index 63ac092dfaf1230b0239da8f8dbdd89270673b2d..c58df126d62442a056d63437518699c3d189012c 100644 (file)
@@ -30,7 +30,7 @@
     /// For types that implement `Copy`, the suggestion to `Box` a variant's
     /// data would require removing the trait impl. The types can of course
     /// still be `Clone`, but that is worse ergonomically. Depending on the
-    /// use case it may be possible to store the large data in an auxillary
+    /// use case it may be possible to store the large data in an auxiliary
     /// structure (e.g. Arena or ECS).
     ///
     /// The lint will ignore generic types if the layout depends on the
     ///
     /// ### Example
     /// ```rust
-    /// // Bad
     /// enum Test {
     ///     A(i32),
     ///     B([i32; 8000]),
     /// }
+    /// ```
     ///
+    /// Use instead:
+    /// ```rust
     /// // Possibly better
     /// enum Test2 {
     ///     A(i32),