Skip to content

Commit ad06dfe

Browse files
committed
Fix misspelled comments.
1 parent 292caef commit ad06dfe

File tree

22 files changed

+29
-29
lines changed

22 files changed

+29
-29
lines changed

src/compiletest/common.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub struct Config {
136136
// Extra parameter to run adb on arm-linux-androideabi
137137
pub adb_path: String,
138138

139-
// Extra parameter to run test sute on arm-linux-androideabi
139+
// Extra parameter to run test suite on arm-linux-androideabi
140140
pub adb_test_dir: String,
141141

142142
// status whether android device available or not

src/compiletest/runtest.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
325325
let DebuggerCommands { commands, check_lines, .. } = parse_debugger_commands(testfile, "gdb");
326326
let mut cmds = commands.connect("\n");
327327

328-
// compile test file (it shoud have 'compile-flags:-g' in the header)
328+
// compile test file (it should have 'compile-flags:-g' in the header)
329329
let compiler_run_result = compile_test(config, props, testfile);
330330
if !compiler_run_result.status.success() {
331331
fatal_proc_rec("compilation failed!", &compiler_run_result);
@@ -520,7 +520,7 @@ fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path)
520520

521521
let config = &mut config;
522522

523-
// compile test file (it shoud have 'compile-flags:-g' in the header)
523+
// compile test file (it should have 'compile-flags:-g' in the header)
524524
let compile_result = compile_test(config, props, testfile);
525525
if !compile_result.status.success() {
526526
fatal_proc_rec("compilation failed!", &compile_result);

src/libcollections/bitv.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,7 @@ pub struct BitPositions<'a> {
15171517
next_idx: uint
15181518
}
15191519

1520-
/// An iterator combining wo `BitvSet` iterators.
1520+
/// An iterator combining two `BitvSet` iterators.
15211521
pub struct TwoBitPositions<'a> {
15221522
set: &'a BitvSet,
15231523
other: &'a BitvSet,

src/libcollections/priority_queue.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
//! // 10 | |
120120
//! // +---------------+
121121
//! //
122-
//! // The graph is represented as an adjecency list where each index,
122+
//! // The graph is represented as an adjacency list where each index,
123123
//! // corresponding to a node value, has a list of outgoing edges.
124124
//! // Chosen for it's efficiency.
125125
//! let graph = vec![

src/libcollections/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ pub mod raw {
842842
/// Create a `String` from a null-terminated *u8 buffer
843843
///
844844
/// This function is unsafe because we dereference memory until we find the NUL character,
845-
/// which is not guaranteed to be present. Additionaly, the slice is not checked to see
845+
/// which is not guaranteed to be present. Additionally, the slice is not checked to see
846846
/// whether it contains valid UTF-8
847847
pub unsafe fn from_buf(buf: *const u8) -> String {
848848
let mut len = 0;

src/libcore/cell.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ pub struct UnsafeCell<T> {
449449
}
450450

451451
impl<T> UnsafeCell<T> {
452-
/// Construct a new instance of `UnsafeCell` which will wrapp the specified
452+
/// Construct a new instance of `UnsafeCell` which will wrap the specified
453453
/// value.
454454
///
455455
/// All access to the inner value through methods is `unsafe`, and it is

src/libgreen/task.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ extern fn bootstrap_green_task(task: uint, code: *mut (), env: *mut ()) -> ! {
118118
// preserving a handle to the GreenTask down to this point, this
119119
// unfortunately must call `GreenTask::convert`. In order to avoid
120120
// this we could add a `terminate` function to the `Runtime` trait
121-
// in libstd, but that seems less appropriate since the coversion
121+
// in libstd, but that seems less appropriate since the conversion
122122
// method exists.
123123
GreenTask::convert(task).terminate();
124124
}

src/libnative/io/net.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ impl rtio::RtioUdpSocket for UdpSocket {
769769
// It turns out that there's this nifty MSG_DONTWAIT flag which can be passed to
770770
// send/recv, but the niftiness wears off once you realize it only works well on
771771
// linux [1] [2]. This means that it's pretty easy to get a nonblocking
772-
// operation on linux (no flag fidding, no affecting other objects), but not on
772+
// operation on linux (no flag fiddling, no affecting other objects), but not on
773773
// other platforms.
774774
//
775775
// To work around this constraint on other platforms, we end up using the

src/libnative/io/pipe_win32.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ impl UnixStream {
311311
}
312312
}
313313

314-
// An example I found on microsoft's website used 20
314+
// An example I found on Microsoft's website used 20
315315
// seconds, libuv uses 30 seconds, hence we make the
316316
// obvious choice of waiting for 25 seconds.
317317
None => {

src/librustc/metadata/loader.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! Finds crate binaries and loads their metadata
1212
//!
1313
//! Might I be the first to welcome you to a world of platform differences,
14-
//! version requirements, dependency graphs, conficting desires, and fun! This
14+
//! version requirements, dependency graphs, conflicting desires, and fun! This
1515
//! is the major guts (along with metadata::creader) of the compiler for loading
1616
//! crates and resolving dependencies. Let's take a tour!
1717
//!
@@ -83,7 +83,7 @@
8383
//! 5. Does the target in the metadata agree with the current target?
8484
//! 6. Does the SVH match? (more on this later)
8585
//!
86-
//! If the file answeres `yes` to all these questions, then the file is
86+
//! If the file answers `yes` to all these questions, then the file is
8787
//! considered as being *candidate* for being accepted. It is illegal to have
8888
//! more than two candidates as the compiler has no method by which to resolve
8989
//! this conflict. Additionally, rlib/dylib candidates are considered
@@ -173,7 +173,7 @@
173173
//! ## Loading transitive dependencies
174174
//!
175175
//! Dealing with same-named-but-distinct crates is not just a local problem, but
176-
//! one that also needs to be dealt with for transitive dependences. Note that
176+
//! one that also needs to be dealt with for transitive dependencies. Note that
177177
//! in the letter above `--extern` flags only apply to the *local* set of
178178
//! dependencies, not the upstream transitive dependencies. Consider this
179179
//! dependency graph:
@@ -660,7 +660,7 @@ impl<'a> Context<'a> {
660660
false
661661
});
662662

663-
// Now that we have an itertor of good candidates, make sure there's at
663+
// Now that we have an iterator of good candidates, make sure there's at
664664
// most one rlib and at most one dylib.
665665
let mut rlibs = HashSet::new();
666666
let mut dylibs = HashSet::new();

src/librustc/middle/ty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ pub struct ctxt {
269269

270270
/// Stores the type parameters which were substituted to obtain the type
271271
/// of this node. This only applies to nodes that refer to entities
272-
/// param<eterized by type parameters, such as generic fns, types, or
272+
/// parameterized by type parameters, such as generic fns, types, or
273273
/// other items.
274274
pub item_substs: RefCell<NodeMap<ItemSubsts>>,
275275

src/librustdoc/html/render.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ impl Context {
10981098
Ok(())
10991099
}
11001100

1101-
/// Non-parellelized version of rendering an item. This will take the input
1101+
/// Non-parallelized version of rendering an item. This will take the input
11021102
/// item, render its contents, and then invoke the specified closure with
11031103
/// all sub-items which need to be rendered.
11041104
///

src/librustdoc/stability_summary.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl Counts {
6060
}
6161

6262
#[deriving(Encodable, Decodable, PartialEq, Eq)]
63-
/// A summarized module, which includes total counts and summarized chilcren
63+
/// A summarized module, which includes total counts and summarized children
6464
/// modules.
6565
pub struct ModuleSummary {
6666
pub name: String,

src/librustuv/stream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub struct StreamWatcher {
2828
// Cache the last used uv_write_t so we don't have to allocate a new one on
2929
// every call to uv_write(). Ideally this would be a stack-allocated
3030
// structure, but currently we don't have mappings for all the structures
31-
// defined in libuv, so we're foced to malloc this.
31+
// defined in libuv, so we're forced to malloc this.
3232
last_write_req: Option<Request>,
3333

3434
blocked_writer: Option<BlockedTask>,

src/libstd/collections/hashmap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1937,7 +1937,7 @@ impl<T: Eq + Hash<S>, S, H: Hasher<S>> HashSet<T, H> {
19371937
/// # Example
19381938
///
19391939
/// This is a slightly silly example where we define the number's
1940-
/// parity as the equivilance class. It is important that the
1940+
/// parity as the equivalence class. It is important that the
19411941
/// values hash the same, which is why we implement `Hash`.
19421942
///
19431943
/// ```rust

src/libstd/io/net/addrinfo.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub fn get_host_addresses(host: &str) -> IoResult<Vec<IpAddr>> {
7979
lookup(Some(host), None, None).map(|a| a.move_iter().map(|i| i.address.ip).collect())
8080
}
8181

82-
/// Full-fleged resolution. This function will perform a synchronous call to
82+
/// Full-fledged resolution. This function will perform a synchronous call to
8383
/// getaddrinfo, controlled by the parameters
8484
///
8585
/// # Arguments

src/libstd/os.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ pub fn make_absolute(p: &Path) -> Path {
873873
///
874874
/// let root = Path::new("/");
875875
/// assert!(os::change_dir(&root));
876-
/// println!("Succesfully changed working directory to {}!", root.display());
876+
/// println!("Successfully changed working directory to {}!", root.display());
877877
/// ```
878878
pub fn change_dir(p: &Path) -> bool {
879879
return chdir(p);

src/libsync/lock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ impl<T: Send> Mutex<T> {
223223
pub fn lock<'a>(&'a self) -> MutexGuard<'a, T> {
224224
let guard = self.lock.lock();
225225

226-
// These two accesses are safe because we're guranteed at this point
226+
// These two accesses are safe because we're guaranteed at this point
227227
// that we have exclusive access to this mutex. We are indeed able to
228228
// promote ourselves from &Mutex to `&mut T`
229229
let poison = unsafe { &mut *self.failed.get() };
@@ -326,7 +326,7 @@ impl<T: Send + Share> RWLock<T> {
326326
pub fn write<'a>(&'a self) -> RWLockWriteGuard<'a, T> {
327327
let guard = self.lock.write();
328328

329-
// These two accesses are safe because we're guranteed at this point
329+
// These two accesses are safe because we're guaranteed at this point
330330
// that we have exclusive access to this rwlock. We are indeed able to
331331
// promote ourselves from &RWLock to `&mut T`
332332
let poison = unsafe { &mut *self.failed.get() };

src/libsyntax/attr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ pub fn require_unique_names(diagnostic: &SpanHandler, metas: &[Gc<MetaItem>]) {
426426
/// not allowed on univariant or zero-variant enums, which have no discriminant.
427427
///
428428
/// If a discriminant type is so specified, then the discriminant will be
429-
/// present (before fields, if any) with that type; reprensentation
429+
/// present (before fields, if any) with that type; representation
430430
/// optimizations which would remove it will not be done.
431431
pub fn find_repr_attr(diagnostic: &SpanHandler, attr: &Attribute, acc: ReprAttr)
432432
-> ReprAttr {

src/libsyntax/ext/deriving/encodable.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
//! }
4242
//! ```
4343
//!
44-
//! Other interesting scenarios are whe the item has type parameters or
44+
//! Other interesting scenarios are when the item has type parameters or
4545
//! references other non-built-in types. A type definition like:
4646
//!
4747
//! ```ignore

src/libsyntax/parse/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4356,7 +4356,7 @@ impl<'a> Parser<'a> {
43564356
return self.parse_single_struct_field(Inherited, attrs);
43574357
}
43584358

4359-
/// Parse visiility: PUB, PRIV, or nothing
4359+
/// Parse visibility: PUB, PRIV, or nothing
43604360
fn parse_visibility(&mut self) -> Visibility {
43614361
if self.eat_keyword(keywords::Pub) { Public }
43624362
else { Inherited }

src/libsyntax/print/pp.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,12 @@ pub fn mk_printer(out: Box<io::Writer>, linewidth: uint) -> Printer {
225225
/// 'right' indices denote the active portion of the ring buffer as well as
226226
/// describing hypothetical points-in-the-infinite-stream at most 3N tokens
227227
/// apart (i.e. "not wrapped to ring-buffer boundaries"). The paper will switch
228-
/// between using 'left' and 'right' terms to denote the wrapepd-to-ring-buffer
228+
/// between using 'left' and 'right' terms to denote the wrapped-to-ring-buffer
229229
/// and point-in-infinite-stream senses freely.
230230
///
231231
/// There is a parallel ring buffer, 'size', that holds the calculated size of
232232
/// each token. Why calculated? Because for Begin/End pairs, the "size"
233-
/// includes everything betwen the pair. That is, the "size" of Begin is
233+
/// includes everything between the pair. That is, the "size" of Begin is
234234
/// actually the sum of the sizes of everything between Begin and the paired
235235
/// End that follows. Since that is arbitrarily far in the future, 'size' is
236236
/// being rewritten regularly while the printer runs; in fact most of the
@@ -270,7 +270,7 @@ pub struct Printer {
270270
left: uint,
271271
/// Index of right side of input stream
272272
right: uint,
273-
/// Ring-buffr stream goes through
273+
/// Ring-buffer stream goes through
274274
token: Vec<Token> ,
275275
/// Ring-buffer of calculated sizes
276276
size: Vec<int> ,

0 commit comments

Comments
 (0)