mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 02:17:36 -04:00
rust: pin-init: docs: fix typos in MaybeZeroable documentation
Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com> Link: https://patch.msgid.link/20260527-pin-init-sync-v1-4-e20335ed2501@garyguo.net Signed-off-by: Gary Guo <gary@garyguo.net>
This commit is contained in:
@@ -431,7 +431,7 @@
|
||||
/// ```
|
||||
/// use pin_init::MaybeZeroable;
|
||||
///
|
||||
/// // implmements `Zeroable`
|
||||
/// // implements `Zeroable`
|
||||
/// #[derive(MaybeZeroable)]
|
||||
/// pub struct DriverData {
|
||||
/// pub(crate) id: i64,
|
||||
@@ -439,7 +439,7 @@
|
||||
/// len: usize,
|
||||
/// }
|
||||
///
|
||||
/// // does not implmement `Zeroable`
|
||||
/// // does not implement `Zeroable`
|
||||
/// #[derive(MaybeZeroable)]
|
||||
/// pub struct DriverData2 {
|
||||
/// pub(crate) id: i64,
|
||||
|
||||
Reference in New Issue
Block a user