Skip to content

Commit 2f95de3

Browse files
committed
Auto merge of #30129 - tbu-:pr_doc_arrays_coerce, r=steveklabnik
Fixes #29993.
2 parents 69b2fce + 53f0269 commit 2f95de3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libstd/primitive_docs.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,17 +214,17 @@ mod prim_pointer { }
214214

215215
#[doc(primitive = "array")]
216216
//
217-
/// A fixed-size array, denoted `[T; N]`, for the element type, `T`, and
218-
/// the non-negative compile time constant size, `N`.
217+
/// A fixed-size array, denoted `[T; N]`, for the element type, `T`, and the
218+
/// non-negative compile time constant size, `N`.
219219
///
220220
/// Arrays values are created either with an explicit expression that lists
221221
/// each element: `[x, y, z]` or a repeat expression: `[x; N]`. The repeat
222222
/// expression requires that the element type is `Copy`.
223223
///
224224
/// The type `[T; N]` is `Copy` if `T: Copy`.
225225
///
226-
/// Arrays of sizes from 0 to 32 (inclusive) implement the following traits
227-
/// if the element type allows it:
226+
/// Arrays of sizes from 0 to 32 (inclusive) implement the following traits if
227+
/// the element type allows it:
228228
///
229229
/// - `Clone` (only if `T: Copy`)
230230
/// - `Debug`
@@ -235,8 +235,8 @@ mod prim_pointer { }
235235
/// - `Borrow`, `BorrowMut`
236236
/// - `Default`
237237
///
238-
/// Arrays dereference to [slices (`[T]`)][slice], so their methods can be called
239-
/// on arrays.
238+
/// Arrays coerce to [slices (`[T]`)][slice], so their methods can be called on
239+
/// arrays.
240240
///
241241
/// [slice]: primitive.slice.html
242242
///

0 commit comments

Comments
 (0)