extra: fix spelling in docs.
This commit is contained in:
parent
c126aa5692
commit
b0bcbbb154
4 changed files with 9 additions and 9 deletions
|
@ -276,7 +276,7 @@ impl<T:Freeze + Send> MutexArc<T> {
|
|||
* might contain nested MutexArcs inside.
|
||||
*
|
||||
* The purpose of this is to offer a safe implementation of MutexArc to be
|
||||
* used instead of RWArc in cases where no readers are needed and sightly
|
||||
* used instead of RWArc in cases where no readers are needed and slightly
|
||||
* better performance is required.
|
||||
*
|
||||
* Both methods have the same failure behaviour as unsafe_access and
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
//! file name following `-o`, and accepts both `-h` and `--help` as optional flags.
|
||||
//!
|
||||
//! ~~~{.rust}
|
||||
//! exter mod extra;
|
||||
//! extern mod extra;
|
||||
//! use extra::getopts::*;
|
||||
//! use std::os;
|
||||
//!
|
||||
|
@ -114,7 +114,7 @@ pub enum Occur {
|
|||
pub struct Opt {
|
||||
/// Name of the option
|
||||
name: Name,
|
||||
/// Wheter it has an argument
|
||||
/// Whether it has an argument
|
||||
hasarg: HasArg,
|
||||
/// How often it can occur
|
||||
occur: Occur,
|
||||
|
@ -154,7 +154,7 @@ pub enum Fail_ {
|
|||
UnexpectedArgument(~str),
|
||||
}
|
||||
|
||||
/// The type of failure that occured.
|
||||
/// The type of failure that occurred.
|
||||
#[deriving(Eq)]
|
||||
#[allow(missing_doc)]
|
||||
pub enum FailType {
|
||||
|
|
|
@ -18,7 +18,7 @@ use std::io;
|
|||
use std::io::fs;
|
||||
|
||||
/// A wrapper for a path to temporary directory implementing automatic
|
||||
/// scope-pased deletion.
|
||||
/// scope-based deletion.
|
||||
pub struct TempDir {
|
||||
priv path: Option<Path>
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ identifiers to entities without requiring a central allocating authority.
|
|||
|
||||
They are particularly useful in distributed systems, though can be used in
|
||||
disparate areas, such as databases and network protocols. Typically a UUID is
|
||||
displayed in a readable string form as a sequence of hexadecimals digits,
|
||||
displayed in a readable string form as a sequence of hexadecimal digits,
|
||||
separated into groups by hyphens.
|
||||
|
||||
The uniqueness property is not strictly guaranteed, however for all practical
|
||||
|
@ -89,11 +89,11 @@ pub enum UuidVersion {
|
|||
/// The reserved variants of UUIDs
|
||||
#[deriving(Eq)]
|
||||
pub enum UuidVariant {
|
||||
/// Reserved by the NCS for backward compatability
|
||||
/// Reserved by the NCS for backward compatibility
|
||||
VariantNCS,
|
||||
/// As described in the RFC4122 Specification (default)
|
||||
VariantRFC4122,
|
||||
/// Resreved by Microsoft for backward compatability
|
||||
/// Reserved by Microsoft for backward compatibility
|
||||
VariantMicrosoft,
|
||||
/// Reserved for future expansion
|
||||
VariantFuture,
|
||||
|
@ -313,7 +313,7 @@ impl Uuid {
|
|||
str::from_utf8_owned(s)
|
||||
}
|
||||
|
||||
/// Returns a string of hexadecimal digits, separated into groups with a hypen
|
||||
/// Returns a string of hexadecimal digits, separated into groups with a hyphen.
|
||||
///
|
||||
/// Example: `550e8400-e29b-41d4-a716-446655440000`
|
||||
pub fn to_hyphenated_str(&self) -> ~str {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue