summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorMiguel Ojeda <ojeda@kernel.org>2026-04-06 01:53:05 +0200
committerMiguel Ojeda <ojeda@kernel.org>2026-04-07 10:00:25 +0200
commit9375ea727d7e5c0459c2423d2afccad78cc72187 (patch)
tree8ac994d7e6744711a9426bd502f97dcfcec27287 /rust/kernel/alloc/kvec/errors.rs
parenta4392ed1c8b985e0a3dbad2739445e52c1c5543c (diff)
docs: rust: general-information: simplify Kconfig example
There is no need to use `def_bool y if <expr>` -- one can simply write `def_bool <expr>`. In fact, the simpler form is how we actually use them in practice in `init/Kconfig`. Thus simplify the example. Reviewed-by: Tamir Duberstein <tamird@kernel.org> Reviewed-by: Gary Guo <gary@garyguo.net> Link: https://patch.msgid.link/20260405235309.418950-30-ojeda@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions