]> git.lizzy.rs Git - rust.git/commitdiff
Fix misspelled comments.
authorJoseph Crail <jbcrail@gmail.com>
Fri, 1 Aug 2014 23:40:21 +0000 (19:40 -0400)
committerJoseph Crail <jbcrail@gmail.com>
Fri, 1 Aug 2014 23:42:52 +0000 (19:42 -0400)
22 files changed:
src/compiletest/common.rs
src/compiletest/runtest.rs
src/libcollections/bitv.rs
src/libcollections/priority_queue.rs
src/libcollections/string.rs
src/libcore/cell.rs
src/libgreen/task.rs
src/libnative/io/net.rs
src/libnative/io/pipe_win32.rs
src/librustc/metadata/loader.rs
src/librustc/middle/ty.rs
src/librustdoc/html/render.rs
src/librustdoc/stability_summary.rs
src/librustuv/stream.rs
src/libstd/collections/hashmap.rs
src/libstd/io/net/addrinfo.rs
src/libstd/os.rs
src/libsync/lock.rs
src/libsyntax/attr.rs
src/libsyntax/ext/deriving/encodable.rs
src/libsyntax/parse/parser.rs
src/libsyntax/print/pp.rs

index 3df46fde59ae85563a8a77d696f21b529d9879bf..ba201a4a633c62708d2902513cb499de800974e0 100644 (file)
@@ -136,7 +136,7 @@ pub struct Config {
     // Extra parameter to run adb on arm-linux-androideabi
     pub adb_path: String,
 
-    // Extra parameter to run test sute on arm-linux-androideabi
+    // Extra parameter to run test suite on arm-linux-androideabi
     pub adb_test_dir: String,
 
     // status whether android device available or not
index 851d12f814b56fd9b137bcedc8eac2219a31cd8f..a9c7673d4ddfbff90feca391b653d4f339954792 100644 (file)
@@ -325,7 +325,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
     let DebuggerCommands { commands, check_lines, .. } = parse_debugger_commands(testfile, "gdb");
     let mut cmds = commands.connect("\n");
 
-    // compile test file (it shoud have 'compile-flags:-g' in the header)
+    // compile test file (it should have 'compile-flags:-g' in the header)
     let compiler_run_result = compile_test(config, props, testfile);
     if !compiler_run_result.status.success() {
         fatal_proc_rec("compilation failed!", &compiler_run_result);
@@ -520,7 +520,7 @@ fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path)
 
     let config = &mut config;
 
-    // compile test file (it shoud have 'compile-flags:-g' in the header)
+    // compile test file (it should have 'compile-flags:-g' in the header)
     let compile_result = compile_test(config, props, testfile);
     if !compile_result.status.success() {
         fatal_proc_rec("compilation failed!", &compile_result);
index 3e1160b45eee40d558a3f43dbf277d31e358f4eb..d709fa49e35e2690856ab8ba87d7c9a5fac7e42f 100644 (file)
@@ -1517,7 +1517,7 @@ pub struct BitPositions<'a> {
     next_idx: uint
 }
 
-/// An iterator combining wo `BitvSet` iterators.
+/// An iterator combining two `BitvSet` iterators.
 pub struct TwoBitPositions<'a> {
     set: &'a BitvSet,
     other: &'a BitvSet,
index f76fae39f3426d443b258ae88557be6273cfd4ba..bf2c8c83d87b6042d33cb7ac72eb7c6eade2be5d 100644 (file)
 //!     //           10      |               |
 //!     //                   +---------------+
 //!     //
-//!     // The graph is represented as an adjecency list where each index,
+//!     // The graph is represented as an adjacency list where each index,
 //!     // corresponding to a node value, has a list of outgoing edges.
 //!     // Chosen for it's efficiency.
 //!     let graph = vec![
index d9aea8b0a28a3143d3ec7b8087502f82f8933a9e..684a15f9aae50028cdb0add0fcd3dc66f393bc81 100644 (file)
@@ -842,7 +842,7 @@ pub unsafe fn from_buf_len(buf: *const u8, len: uint) -> String {
     /// Create a `String` from a null-terminated *u8 buffer
     ///
     /// This function is unsafe because we dereference memory until we find the NUL character,
-    /// which is not guaranteed to be present. Additionaly, the slice is not checked to see
+    /// which is not guaranteed to be present. Additionally, the slice is not checked to see
     /// whether it contains valid UTF-8
     pub unsafe fn from_buf(buf: *const u8) -> String {
         let mut len = 0;
index 24ea3480c4397ae1633c00dbfe467e3597700e87..becd2d3f9628cc8fc56c88c9e607b07740f72986 100644 (file)
@@ -449,7 +449,7 @@ pub struct UnsafeCell<T> {
 }
 
 impl<T> UnsafeCell<T> {
-    /// Construct a new instance of `UnsafeCell` which will wrapp the specified
+    /// Construct a new instance of `UnsafeCell` which will wrap the specified
     /// value.
     ///
     /// All access to the inner value through methods is `unsafe`, and it is
index 12d7b75569782f18ff52408d5b880e31e45aee2c..73fe8f6a93f82d4cf7169fb6b677ed5d68d814d4 100644 (file)
@@ -118,7 +118,7 @@ pub enum Home {
     // preserving a handle to the GreenTask down to this point, this
     // unfortunately must call `GreenTask::convert`. In order to avoid
     // this we could add a `terminate` function to the `Runtime` trait
-    // in libstd, but that seems less appropriate since the coversion
+    // in libstd, but that seems less appropriate since the conversion
     // method exists.
     GreenTask::convert(task).terminate();
 }
index 7a90ede8ca863283f79dd1f75666b4465cd2c76a..cf2d6e7fb45ae18ab1f5fb62502f34a612bf477c 100644 (file)
@@ -769,7 +769,7 @@ fn set_write_timeout(&mut self, timeout: Option<u64>) {
 // It turns out that there's this nifty MSG_DONTWAIT flag which can be passed to
 // send/recv, but the niftiness wears off once you realize it only works well on
 // linux [1] [2]. This means that it's pretty easy to get a nonblocking
-// operation on linux (no flag fidding, no affecting other objects), but not on
+// operation on linux (no flag fiddling, no affecting other objects), but not on
 // other platforms.
 //
 // To work around this constraint on other platforms, we end up using the
index 79ca23abed25c9968ef567a8a63cb2ade6699541..d5b22b4b018c9a103b0f216148e4882a161c7335 100644 (file)
@@ -311,7 +311,7 @@ pub fn connect(addr: &CString, timeout: Option<u64>) -> IoResult<UnixStream> {
                     }
                 }
 
-                // An example I found on microsoft's website used 20
+                // An example I found on Microsoft's website used 20
                 // seconds, libuv uses 30 seconds, hence we make the
                 // obvious choice of waiting for 25 seconds.
                 None => {
index 4b9dd1003ec604ec6827ca67abbccd1b527d2be8..d2e1fca0da75d3cc7c4bec3fc28d05ea21789ab7 100644 (file)
@@ -11,7 +11,7 @@
 //! Finds crate binaries and loads their metadata
 //!
 //! Might I be the first to welcome you to a world of platform differences,
-//! version requirements, dependency graphs, conficting desires, and fun! This
+//! version requirements, dependency graphs, conflicting desires, and fun! This
 //! is the major guts (along with metadata::creader) of the compiler for loading
 //! crates and resolving dependencies. Let's take a tour!
 //!
@@ -83,7 +83,7 @@
 //! 5. Does the target in the metadata agree with the current target?
 //! 6. Does the SVH match? (more on this later)
 //!
-//! If the file answeres `yes` to all these questions, then the file is
+//! If the file answers `yes` to all these questions, then the file is
 //! considered as being *candidate* for being accepted. It is illegal to have
 //! more than two candidates as the compiler has no method by which to resolve
 //! this conflict. Additionally, rlib/dylib candidates are considered
 //! ## Loading transitive dependencies
 //!
 //! Dealing with same-named-but-distinct crates is not just a local problem, but
-//! one that also needs to be dealt with for transitive dependences. Note that
+//! one that also needs to be dealt with for transitive dependencies. Note that
 //! in the letter above `--extern` flags only apply to the *local* set of
 //! dependencies, not the upstream transitive dependencies. Consider this
 //! dependency graph:
@@ -660,7 +660,7 @@ fn find_commandline_library(&mut self) -> Option<Library> {
             false
         });
 
-        // Now that we have an itertor of good candidates, make sure there's at
+        // Now that we have an iterator of good candidates, make sure there's at
         // most one rlib and at most one dylib.
         let mut rlibs = HashSet::new();
         let mut dylibs = HashSet::new();
index 0f5af4421a5e8fb89e98c3888979ea15445f6d0f..ce8f37514a4cdd80e7847c62b724150e402640d2 100644 (file)
@@ -269,7 +269,7 @@ pub struct ctxt {
 
     /// Stores the type parameters which were substituted to obtain the type
     /// of this node.  This only applies to nodes that refer to entities
-    /// param<eterized by type parameters, such as generic fns, types, or
+    /// parameterized by type parameters, such as generic fns, types, or
     /// other items.
     pub item_substs: RefCell<NodeMap<ItemSubsts>>,
 
index 084ba46797ef9f0492f5fbea60da25496c89c83a..0b82f470cdb3526791769d11a51c615a477163eb 100644 (file)
@@ -1098,7 +1098,7 @@ fn krate(mut self, mut krate: clean::Crate,
         Ok(())
     }
 
-    /// Non-parellelized version of rendering an item. This will take the input
+    /// Non-parallelized version of rendering an item. This will take the input
     /// item, render its contents, and then invoke the specified closure with
     /// all sub-items which need to be rendered.
     ///
index 18e90d5d62109327ddbaf12a9afed9ec34faa85a..60db4fda05190098046ed477101d521a98276680 100644 (file)
@@ -60,7 +60,7 @@ pub fn total(&self) -> uint {
 }
 
 #[deriving(Encodable, Decodable, PartialEq, Eq)]
-/// A summarized module, which includes total counts and summarized chilcren
+/// A summarized module, which includes total counts and summarized children
 /// modules.
 pub struct ModuleSummary {
     pub name: String,
index 875c2dee46b4f874f9cf84a8d293c594558f563b..c49e557a3237dc4d32aa74e80f094ade61362b90 100644 (file)
@@ -28,7 +28,7 @@ pub struct StreamWatcher {
     // Cache the last used uv_write_t so we don't have to allocate a new one on
     // every call to uv_write(). Ideally this would be a stack-allocated
     // structure, but currently we don't have mappings for all the structures
-    // defined in libuv, so we're foced to malloc this.
+    // defined in libuv, so we're forced to malloc this.
     last_write_req: Option<Request>,
 
     blocked_writer: Option<BlockedTask>,
index a569ee4a32a18554e9611514a81fb6eb8a843eee..e95a5305bc7700ea6106c6ab2b372bd372ec7238 100644 (file)
@@ -1937,7 +1937,7 @@ pub fn reserve(&mut self, n: uint) {
     /// # Example
     ///
     /// This is a slightly silly example where we define the number's
-    /// parity as the equivilance class. It is important that the
+    /// parity as the equivalence class. It is important that the
     /// values hash the same, which is why we implement `Hash`.
     ///
     /// ```rust
index 8d5fd2b99fd7b6e2fdff9997ffe3bb8f0a27a722..771eb9e13e836d962902632b003b65d48c5ff844 100644 (file)
@@ -79,7 +79,7 @@ pub fn get_host_addresses(host: &str) -> IoResult<Vec<IpAddr>> {
     lookup(Some(host), None, None).map(|a| a.move_iter().map(|i| i.address.ip).collect())
 }
 
-/// Full-fleged resolution. This function will perform a synchronous call to
+/// Full-fledged resolution. This function will perform a synchronous call to
 /// getaddrinfo, controlled by the parameters
 ///
 /// # Arguments
index 7fff510a60a4b19ae7a2c69c97c46d723b63320c..dfa691d1823420368b4efed722bb83904f374f23 100644 (file)
@@ -873,7 +873,7 @@ pub fn make_absolute(p: &Path) -> Path {
 ///
 /// let root = Path::new("/");
 /// assert!(os::change_dir(&root));
-/// println!("Succesfully changed working directory to {}!", root.display());
+/// println!("Successfully changed working directory to {}!", root.display());
 /// ```
 pub fn change_dir(p: &Path) -> bool {
     return chdir(p);
index e8418f9668f2a80d1fded58981cee230b6589a63..665cd48a278df68a26c8424a90e048baea60ea57 100644 (file)
@@ -223,7 +223,7 @@ pub fn new_with_condvars(user_data: T, num_condvars: uint) -> Mutex<T> {
     pub fn lock<'a>(&'a self) -> MutexGuard<'a, T> {
         let guard = self.lock.lock();
 
-        // These two accesses are safe because we're guranteed at this point
+        // These two accesses are safe because we're guaranteed at this point
         // that we have exclusive access to this mutex. We are indeed able to
         // promote ourselves from &Mutex to `&mut T`
         let poison = unsafe { &mut *self.failed.get() };
@@ -326,7 +326,7 @@ pub fn new_with_condvars(user_data: T, num_condvars: uint) -> RWLock<T> {
     pub fn write<'a>(&'a self) -> RWLockWriteGuard<'a, T> {
         let guard = self.lock.write();
 
-        // These two accesses are safe because we're guranteed at this point
+        // These two accesses are safe because we're guaranteed at this point
         // that we have exclusive access to this rwlock. We are indeed able to
         // promote ourselves from &RWLock to `&mut T`
         let poison = unsafe { &mut *self.failed.get() };
index e8b9ec9628f7deba896a0b87283faf22dd264842..21252619d11aeb27e3d5781a8e5df9d8dba59a2f 100644 (file)
@@ -426,7 +426,7 @@ pub fn require_unique_names(diagnostic: &SpanHandler, metas: &[Gc<MetaItem>]) {
 /// not allowed on univariant or zero-variant enums, which have no discriminant.
 ///
 /// If a discriminant type is so specified, then the discriminant will be
-/// present (before fields, if any) with that type; reprensentation
+/// present (before fields, if any) with that type; representation
 /// optimizations which would remove it will not be done.
 pub fn find_repr_attr(diagnostic: &SpanHandler, attr: &Attribute, acc: ReprAttr)
     -> ReprAttr {
index 7e289e7676aa92c908353371364c142bf173de71..02a748eed8e47bce84a1f951fb4ec9563f041f04 100644 (file)
@@ -41,7 +41,7 @@
 //! }
 //! ```
 //!
-//! Other interesting scenarios are whe the item has type parameters or
+//! Other interesting scenarios are when the item has type parameters or
 //! references other non-built-in types.  A type definition like:
 //!
 //! ```ignore
index 945a643d2b4780d1426db72861e9fe64a9f29d9d..de3be4f8f385513cfa1806a5d44b4cae647ed61b 100644 (file)
@@ -4356,7 +4356,7 @@ fn parse_struct_decl_field(&mut self) -> StructField {
         return self.parse_single_struct_field(Inherited, attrs);
     }
 
-    /// Parse visiility: PUB, PRIV, or nothing
+    /// Parse visibility: PUB, PRIV, or nothing
     fn parse_visibility(&mut self) -> Visibility {
         if self.eat_keyword(keywords::Pub) { Public }
         else { Inherited }
index fe84eeff4f87faa4b1248903a9eb26583a1e52db..f28e6829b00d84725796dcb3c42ddd137537e6f6 100644 (file)
@@ -225,12 +225,12 @@ pub fn mk_printer(out: Box<io::Writer>, linewidth: uint) -> Printer {
 /// 'right' indices denote the active portion of the ring buffer as well as
 /// describing hypothetical points-in-the-infinite-stream at most 3N tokens
 /// apart (i.e. "not wrapped to ring-buffer boundaries"). The paper will switch
-/// between using 'left' and 'right' terms to denote the wrapepd-to-ring-buffer
+/// between using 'left' and 'right' terms to denote the wrapped-to-ring-buffer
 /// and point-in-infinite-stream senses freely.
 ///
 /// There is a parallel ring buffer, 'size', that holds the calculated size of
 /// each token. Why calculated? Because for Begin/End pairs, the "size"
-/// includes everything betwen the pair. That is, the "size" of Begin is
+/// includes everything between the pair. That is, the "size" of Begin is
 /// actually the sum of the sizes of everything between Begin and the paired
 /// End that follows. Since that is arbitrarily far in the future, 'size' is
 /// being rewritten regularly while the printer runs; in fact most of the
@@ -270,7 +270,7 @@ pub struct Printer {
     left: uint,
     /// Index of right side of input stream
     right: uint,
-    /// Ring-buffr stream goes through
+    /// Ring-buffer stream goes through
     token: Vec<Token> ,
     /// Ring-buffer of calculated sizes
     size: Vec<int> ,