Rollup merge of #43891 - Fourchaux:master, r=steveklabnik
Fix typos & us spellings Fixing some typos and non en-US spellings. (Update of PR https://github.com/rust-lang/rust/pull/42812 )
This commit is contained in:
@@ -830,7 +830,7 @@ impl CStr {
|
||||
///
|
||||
/// It is your responsibility to make sure that the underlying memory is not
|
||||
/// freed too early. For example, the following code will cause undefined
|
||||
/// behaviour when `ptr` is used inside the `unsafe` block:
|
||||
/// behavior when `ptr` is used inside the `unsafe` block:
|
||||
///
|
||||
/// ```no_run
|
||||
/// use std::ffi::{CString};
|
||||
|
||||
@@ -123,7 +123,7 @@ impl OsString {
|
||||
|
||||
/// Creates a new `OsString` with the given capacity.
|
||||
///
|
||||
/// The string will be able to hold exactly `capacity` lenth units of other
|
||||
/// The string will be able to hold exactly `capacity` length units of other
|
||||
/// OS strings without reallocating. If `capacity` is 0, the string will not
|
||||
/// allocate.
|
||||
///
|
||||
|
||||
@@ -387,7 +387,7 @@ impl Drop for Finish {
|
||||
impl OnceState {
|
||||
/// Returns whether the associated [`Once`] has been poisoned.
|
||||
///
|
||||
/// Once an initalization routine for a [`Once`] has panicked it will forever
|
||||
/// Once an initialization routine for a [`Once`] has panicked it will forever
|
||||
/// indicate to future forced initialization routines that it is poisoned.
|
||||
///
|
||||
/// [`Once`]: struct.Once.html
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
//! Global initialization and retreival of command line arguments.
|
||||
//! Global initialization and retrieval of command line arguments.
|
||||
//!
|
||||
//! On some platforms these are stored during runtime startup,
|
||||
//! and on some they are retrieved from the system on demand.
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
//! Global initialization and retreival of command line arguments.
|
||||
//! Global initialization and retrieval of command line arguments.
|
||||
//!
|
||||
//! On some platforms these are stored during runtime startup,
|
||||
//! and on some they are retrieved from the system on demand.
|
||||
|
||||
@@ -560,7 +560,7 @@ pub fn current() -> Thread {
|
||||
/// implementing low-level shared resources or synchronization primitives.
|
||||
///
|
||||
/// However programmers will usually prefer to use, [`channel`]s, [`Condvar`]s,
|
||||
/// [`Mutex`]es or [`join`] for their synchronisation routines, as they avoid
|
||||
/// [`Mutex`]es or [`join`] for their synchronization routines, as they avoid
|
||||
/// thinking about thread scheduling.
|
||||
///
|
||||
/// Note that [`channel`]s for example are implemented using this primitive.
|
||||
|
||||
@@ -112,7 +112,7 @@ pub struct Instant(time::Instant);
|
||||
/// println!("{}", elapsed.as_secs());
|
||||
/// }
|
||||
/// Err(e) => {
|
||||
/// // an error occured!
|
||||
/// // an error occurred!
|
||||
/// println!("Error: {:?}", e);
|
||||
/// }
|
||||
/// }
|
||||
|
||||
Reference in New Issue
Block a user