diff options
| author | Ralf Jung <post@ralfj.de> | 2020-06-21 21:01:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-21 21:01:28 +0200 |
| commit | cb8c94c523d7ff407f9520a6555ea829c1232a50 (patch) | |
| tree | ce18fbd8d1e5b065f74c6a0a3d99225c3292661f /src/libcore | |
| parent | 55d207a44fef01848fe7224869c97bc786bfd89c (diff) | |
| download | rust-cb8c94c523d7ff407f9520a6555ea829c1232a50.tar.gz rust-cb8c94c523d7ff407f9520a6555ea829c1232a50.zip | |
improve grammar
Co-authored-by: Bastian Kauschke <bastian_kauschke@hotmail.de>
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/mem/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/mem/mod.rs b/src/libcore/mem/mod.rs index 70159402b62..157dd5bc3cc 100644 --- a/src/libcore/mem/mod.rs +++ b/src/libcore/mem/mod.rs @@ -358,7 +358,7 @@ pub fn size_of_val<T: ?Sized>(val: &T) -> usize { /// - an (unstable) [extern type], then this function is always safe to /// call, but may panic or otherwise return the wrong value, as the /// extern type's layout is not known. This is the same behavior as -/// [`size_of_val`] on a reference to a type with extern type tail. +/// [`size_of_val`] on a reference to a type with an extern type tail. /// - otherwise, it is conservatively not allowed to call this function. /// /// [slice]: ../../std/primitive.slice.html @@ -493,7 +493,7 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize { /// - an (unstable) [extern type], then this function is always safe to /// call, but may panic or otherwise return the wrong value, as the /// extern type's layout is not known. This is the same behavior as -/// [`align_of_val`] on a reference to a type with extern type tail. +/// [`align_of_val`] on a reference to a type with an extern type tail. /// - otherwise, it is conservatively not allowed to call this function. /// /// [slice]: ../../std/primitive.slice.html |
