[PATCH 29/33] docs: rust: general-information: simplify Kconfig example

Gary Guo gary at garyguo.net
Wed Apr 1 08:16:36 PDT 2026


On Wed Apr 1, 2026 at 12:45 PM BST, Miguel Ojeda wrote:
> 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.
> 
> Signed-off-by: Miguel Ojeda <ojeda at kernel.org>

Reviewed-by: Gary Guo <gary at garyguo.net>

> ---
>  Documentation/rust/general-information.rst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)




More information about the linux-arm-kernel mailing list