mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
rust: Use consistent "# Examples" heading style in rustdoc
Use a consistent `# Examples` heading in rustdoc across the codebase. Some modules previously used `## Examples` (even when they should be available as top-level headers), while others used `# Example`, which deviates from the preferred `# Examples` style. Suggested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Benno Lossin <lossin@kernel.org> Link: https://lore.kernel.org/r/ddd5ce0ac20c99a72a4f1e4322d3de3911056922.1749545815.git.viresh.kumar@linaro.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
This commit is contained in:
committed by
Miguel Ojeda
parent
bfb9e46b5b
commit
b6985083be
@@ -44,7 +44,7 @@ struct DevresInner<T> {
|
||||
/// [`Devres`] users should make sure to simply free the corresponding backing resource in `T`'s
|
||||
/// [`Drop`] implementation.
|
||||
///
|
||||
/// # Example
|
||||
/// # Examples
|
||||
///
|
||||
/// ```no_run
|
||||
/// # use kernel::{bindings, c_str, device::{Bound, Device}, devres::Devres, io::{Io, IoRaw}};
|
||||
@@ -203,7 +203,7 @@ impl<T> Devres<T> {
|
||||
/// An error is returned if `dev` does not match the same [`Device`] this [`Devres`] instance
|
||||
/// has been created with.
|
||||
///
|
||||
/// # Example
|
||||
/// # Examples
|
||||
///
|
||||
/// ```no_run
|
||||
/// # #![cfg(CONFIG_PCI)]
|
||||
|
||||
Reference in New Issue
Block a user