about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2024-10-23 02:45:24 -0700
committerJosh Triplett <josh@joshtriplett.org>2024-10-23 02:45:24 -0700
commit6315254cfa44ab9b3c3a09da4e324856eac3998d (patch)
treea9b6e08fcd1857b20f4a90cb1f6c33d7a4c31b79
parentcabeeeba9c76a94a8755531c589943858af2fead (diff)
downloadrust-6315254cfa44ab9b3c3a09da4e324856eac3998d.tar.gz
rust-6315254cfa44ab9b3c3a09da4e324856eac3998d.zip
"innermost", "outermost", "leftmost", and "rightmost" don't need hyphens
These are all standard dictionary words and don't require hyphenation.
-rw-r--r--src/type_of.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/type_of.rs b/src/type_of.rs
index 183e9ddf8bf..db874afe1ab 100644
--- a/src/type_of.rs
+++ b/src/type_of.rs
@@ -197,7 +197,7 @@ impl<'tcx> LayoutGccExt<'tcx> for TyAndLayout<'tcx> {
     /// `[T]` becomes `T`, while `str` and `Trait` turn into `i8` - this
     /// is useful for indexing slices, as `&[T]`'s data pointer is `T*`.
     /// If the type is an unsized struct, the regular layout is generated,
-    /// with the inner-most trailing unsized field using the "minimal unit"
+    /// with the innermost trailing unsized field using the "minimal unit"
     /// of that field's type - this is useful for taking the address of
     /// that field and ensuring the struct has the right alignment.
     fn gcc_type<'gcc>(&self, cx: &CodegenCx<'gcc, 'tcx>) -> Type<'gcc> {