Skip to content

Commit 7a3a668

Browse files
committed
fix typo: intialized -> initialized
1 parent 7ddad34 commit 7a3a668

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: library/std/src/io/readbuf.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl<'a> ReadBuf<'a> {
5252

5353
/// Creates a new `ReadBuf` from a fully uninitialized buffer.
5454
///
55-
/// Use `assume_init` if part of the buffer is known to be already inintialized.
55+
/// Use `assume_init` if part of the buffer is known to be already initialized.
5656
#[inline]
5757
pub fn uninit(buf: &'a mut [MaybeUninit<u8>]) -> ReadBuf<'a> {
5858
ReadBuf { buf, filled: 0, initialized: 0 }
@@ -145,7 +145,7 @@ impl<'a> ReadBuf<'a> {
145145
byte.write(0);
146146
}
147147

148-
// SAFETY: we just inintialized uninit bytes, and the previous bytes were already init
148+
// SAFETY: we just initialized uninit bytes, and the previous bytes were already init
149149
unsafe {
150150
self.assume_init(n);
151151
}

Diff for: src/test/ui/closures/2229_closure_analysis/wild_patterns.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![feature(rustc_attrs)]
44

55
// Test to ensure that we can handle cases where
6-
// let statements create no bindings are intialized
6+
// let statements create no bindings are initialized
77
// using a Place expression
88
//
99
// Note: Currently when feature `capture_disjoint_fields` is enabled

0 commit comments

Comments
 (0)