Skip to content

Commit 2e225d6

Browse files
authored
typo fix in bytemuck docs
1 parent eb2d7a0 commit 2e225d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,13 +592,13 @@ impl<T: FloatCore> Complex<T> {
592592
}
593593
}
594594

595-
/// Saftey: `Complex<T>` is `repr(C)` and contains only instances of `T`, so we
595+
/// Safety: `Complex<T>` is `repr(C)` and contains only instances of `T`, so we
596596
/// can guarantee it contains no *added* padding. Thus, if `T: Zeroable`,
597597
/// `Complex<T>` is also `Zeroable`
598598
#[cfg(feature = "bytemuck")]
599599
unsafe impl<T: bytemuck::Zeroable> bytemuck::Zeroable for Complex<T> {}
600600

601-
/// Saftey: `Complex<T>` is `repr(C)` and contains only instances of `T`, so we
601+
/// Safety: `Complex<T>` is `repr(C)` and contains only instances of `T`, so we
602602
/// can guarantee it contains no *added* padding. Thus, if `T: Pod`,
603603
/// `Complex<T>` is also `Pod`
604604
#[cfg(feature = "bytemuck")]

0 commit comments

Comments
 (0)