Skip to content

Commit 6292160

Browse files
authored
Unrolled build for #150578
Rollup merge of #150578 - CieriA:patch-1, r=Mark-Simulacrum Fix a typo in the docs of AsMut for #149609 This PR fixes the documentation of the trait `AsMut`, where in the sentence "[ ... ] interface which work with any type [ ... ]", "work" should be replaced by "works". This also changes the later "[ ... ] into a byte slice ([u8]) or byte vector (Vec<u8>) [ ... ]" to be "[ ... ] into a byte slice ([u8]) or a byte vector (Vec<u8>) [ ... ]" to maintain consistency between "a byte slice" and "a byte vector". Issue: #149609
2 parents 5497a36 + a3e6de6 commit 6292160

File tree

1 file changed

+2
-2
lines changed
  • library/core/src/convert

1 file changed

+2
-2
lines changed

‎library/core/src/convert/mod.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ pub const trait AsRef<T: PointeeSized>: PointeeSized {
308308
/// both `AsMut<Vec<T>>` and `AsMut<[T]>`.
309309
///
310310
/// In the following, the example functions `caesar` and `null_terminate` provide a generic
311-
/// interface which work with any type that can be converted by cheap mutable-to-mutable conversion
312-
/// into a byte slice (`[u8]`) or byte vector (`Vec<u8>`), respectively.
311+
/// interface which works with any type that can be converted by cheap mutable-to-mutable conversion
312+
/// into a byte slice (`[u8]`) or a byte vector (`Vec<u8>`), respectively.
313313
///
314314
/// [dereference]: core::ops::DerefMut
315315
/// [target type]: core::ops::Deref::Target

0 commit comments

Comments
 (0)