Skip to content

Commit edfe8b4

Browse files
authored
Rollup merge of #115329 - xzmeng:fix-std-doc, r=dtolnay
fix std::primitive doc: homogenous -> homogeneous replace "homogenous" with the more commonly used "homogeneous".
2 parents cf9ce96 + 57fccf9 commit edfe8b4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

library/core/src/primitive_docs.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ mod prim_pointer {}
612612
/// statically generated up to size 32.
613613
///
614614
/// Arrays of sizes from 1 to 12 (inclusive) implement [`From<Tuple>`], where `Tuple`
615-
/// is a homogenous [prim@tuple] of appropriate length.
615+
/// is a homogeneous [prim@tuple] of appropriate length.
616616
///
617617
/// Arrays coerce to [slices (`[T]`)][slice], so a slice method may be called on
618618
/// an array. Indeed, this provides most of the API for working with arrays.
@@ -676,7 +676,7 @@ mod prim_pointer {}
676676
/// move_away(roa);
677677
/// ```
678678
///
679-
/// Arrays can be created from homogenous tuples of appropriate length:
679+
/// Arrays can be created from homogeneous tuples of appropriate length:
680680
///
681681
/// ```
682682
/// let tuple: (u32, u32, u32) = (1, 2, 3);
@@ -1065,7 +1065,7 @@ mod prim_str {}
10651065
/// assert_eq!(y, 5);
10661066
/// ```
10671067
///
1068-
/// Homogenous tuples can be created from arrays of appropriate length:
1068+
/// Homogeneous tuples can be created from arrays of appropriate length:
10691069
///
10701070
/// ```
10711071
/// let array: [u32; 3] = [1, 2, 3];

library/std/src/os/unix/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ pub trait FileExt {
155155
/// flag fail to respect the offset parameter, always appending to the end
156156
/// of the file instead.
157157
///
158-
/// It is possible to inadvertantly set this flag, like in the example below.
158+
/// It is possible to inadvertently set this flag, like in the example below.
159159
/// Therefore, it is important to be vigilant while changing options to mitigate
160160
/// unexpected behaviour.
161161
///

library/std/src/primitive_docs.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ mod prim_pointer {}
612612
/// statically generated up to size 32.
613613
///
614614
/// Arrays of sizes from 1 to 12 (inclusive) implement [`From<Tuple>`], where `Tuple`
615-
/// is a homogenous [prim@tuple] of appropriate length.
615+
/// is a homogeneous [prim@tuple] of appropriate length.
616616
///
617617
/// Arrays coerce to [slices (`[T]`)][slice], so a slice method may be called on
618618
/// an array. Indeed, this provides most of the API for working with arrays.
@@ -676,7 +676,7 @@ mod prim_pointer {}
676676
/// move_away(roa);
677677
/// ```
678678
///
679-
/// Arrays can be created from homogenous tuples of appropriate length:
679+
/// Arrays can be created from homogeneous tuples of appropriate length:
680680
///
681681
/// ```
682682
/// let tuple: (u32, u32, u32) = (1, 2, 3);
@@ -1065,7 +1065,7 @@ mod prim_str {}
10651065
/// assert_eq!(y, 5);
10661066
/// ```
10671067
///
1068-
/// Homogenous tuples can be created from arrays of appropriate length:
1068+
/// Homogeneous tuples can be created from arrays of appropriate length:
10691069
///
10701070
/// ```
10711071
/// let array: [u32; 3] = [1, 2, 3];

0 commit comments

Comments
 (0)