Skip to content

Commit 9375ea7

Browse files
committed
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>
1 parent a4392ed commit 9375ea7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Documentation/rust/general-information.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ numerical comparisons, one may define a new Kconfig symbol:
158158
.. code-block:: kconfig
159159
160160
config RUSTC_VERSION_MIN_107900
161-
def_bool y if RUSTC_VERSION >= 107900
161+
def_bool RUSTC_VERSION >= 107900

0 commit comments

Comments
 (0)