Skip to content

Commit fb80b38

Browse files
committed
auto merge of #12727 : lifthrasiir/rust/buffalo-buffalo, r=huonw
Cosmetic changes at best, but there are so many such typos that I couldn't ignore them. :) Some occurrences of typos are linked to the generated documentations but no changes should break the builds.
2 parents 0a7b06e + 1c52c81 commit fb80b38

File tree

24 files changed

+30
-30
lines changed

24 files changed

+30
-30
lines changed

mk/main.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ CSREQ$(1)_T_$(2)_H_$(3) = \
322322
$$(foreach dep,$$(HOST_CRATES),$$(HLIB$(1)_H_$(3))/stamp.$$(dep))
323323

324324
ifeq ($(1),0)
325-
# Don't run the the stage0 compiler under valgrind - that ship has sailed
325+
# Don't run the stage0 compiler under valgrind - that ship has sailed
326326
CFG_VALGRIND_COMPILE$(1) =
327327
else
328328
CFG_VALGRIND_COMPILE$(1) = $$(CFG_VALGRIND_COMPILE)

src/doc/rust.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2485,7 +2485,7 @@ before the expression they apply to.
24852485
`*`
24862486
: Dereference. When applied to a [pointer](#pointer-types) it denotes the pointed-to location.
24872487
For pointers to mutable locations, the resulting [lvalue](#lvalues-rvalues-and-temporaries) can be assigned to.
2488-
On non-pointer types, it calls calls the `deref` method of the `std::ops::Deref` trait, or the
2488+
On non-pointer types, it calls the `deref` method of the `std::ops::Deref` trait, or the
24892489
`deref_mut` method of the `std::ops::DerefMut` trait (if implemented by the type and required
24902490
for an outer expression that will or could mutate the dereference), and produces the
24912491
result of dereferencing the `&` or `&mut` borrowed pointer returned from the overload method.

src/libcollections/smallintmap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ mod test_map {
304304
fn test_insert_with_key() {
305305
let mut map = SmallIntMap::new();
306306

307-
// given a new key, initialize it with this new count, given
307+
// given a new key, initialize it with this new count,
308308
// given an existing key, add more to its count
309309
fn addMoreToCount(_k: uint, v0: uint, v1: uint) -> uint {
310310
v0 + v1

src/libextra/stats.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub trait Stats {
103103
fn median_abs_dev_pct(self) -> f64;
104104

105105
/// Percentile: the value below which `pct` percent of the values in `self` fall. For example,
106-
/// percentile(95.0) will return the value `v` such that that 95% of the samples `s` in `self`
106+
/// percentile(95.0) will return the value `v` such that 95% of the samples `s` in `self`
107107
/// satisfy `s <= v`.
108108
///
109109
/// Calculated by linear interpolation between closest ranks.

src/libgreen/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ pub struct PoolConfig {
284284
}
285285

286286
impl PoolConfig {
287-
/// Returns the default configuration, as determined the the environment
287+
/// Returns the default configuration, as determined the environment
288288
/// variables of this process.
289289
pub fn new() -> PoolConfig {
290290
PoolConfig {

src/librustc/back/svh.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
//! ends up yielding confusing error messages about metadata mismatches and
2020
//! such.
2121
//!
22-
//! The core of this problem is when when an upstream dependency changes and
22+
//! The core of this problem is when an upstream dependency changes and
2323
//! downstream dependants are not recompiled. This causes compile errors because
2424
//! the upstream crate's metadata has changed but the downstream crates are
2525
//! still referencing the older crate's metadata.

src/librustc/middle/borrowck/doc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ borrow checker works, let's look a bit more closely now at the precise
212212
conditions that it uses. For simplicity I will ignore const loans.
213213
214214
I will present the rules in a modified form of standard inference
215-
rules, which looks as as follows:
215+
rules, which looks as follows:
216216
217217
```notrust
218218
PREDICATE(X, Y, Z) // Rule-Name

src/librustc/middle/resolve.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4294,7 +4294,7 @@ impl Resolver {
42944294

42954295
TyPath(ref path, ref bounds, path_id) => {
42964296
// This is a path in the type namespace. Walk through scopes
4297-
// scopes looking for it.
4297+
// looking for it.
42984298
let mut result_def = None;
42994299

43004300
// First, check to see whether the name is a primitive type.

src/librustc/middle/trans/doc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ up expressions into:
4040
## The Datum module
4141
4242
A `Datum` encapsulates the result of evaluating a Rust expression. It
43-
contains a `ValueRef` indicating the result, a `ty::t` describing the
43+
contains a `ValueRef` indicating the result, a `ty::t` describing
4444
the Rust type, but also a *kind*. The kind indicates whether the datum
4545
has cleanup scheduled (lvalue) or not (rvalue) and -- in the case of
4646
rvalues -- whether or not the value is "by ref" or "by value".

src/librustc/middle/ty.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ pub enum BorrowKind {
600600
* be a sublifetime of `'x...'z`.
601601
* - The closure creator knows which upvars were borrowed by the closure
602602
* and thus `x...z` will be reserved for `'x...'z` respectively.
603-
* - Through mutation, the borrowed upvars can actually escape the
603+
* - Through mutation, the borrowed upvars can actually escape
604604
* the closure, so sometimes it is necessary for them to be larger
605605
* than the closure lifetime itself.
606606
*/
@@ -3377,8 +3377,8 @@ pub fn expr_kind(tcx: ctxt,
33773377
// the AST type in cast node---but (at the time of this
33783378
// writing) it's not easy to distinguish casts to traits
33793379
// from other casts based on the AST. This should be
3380-
// easier in the future, when casts to traits would like
3381-
// like @Foo, ~Foo, or &Foo.
3380+
// easier in the future, when casts to traits
3381+
// would like @Foo, ~Foo, or &Foo.
33823382
RvalueDatumExpr
33833383
}
33843384
}
@@ -4240,7 +4240,7 @@ pub fn lookup_simd(tcx: ctxt, did: DefId) -> bool {
42404240
has_attr(tcx, did, "simd")
42414241
}
42424242

4243-
// Obtain the the representation annotation for a definition.
4243+
// Obtain the representation annotation for a definition.
42444244
pub fn lookup_repr_hint(tcx: ctxt, did: DefId) -> attr::ReprAttr {
42454245
let mut acc = attr::ReprAny;
42464246
ty::each_attr(tcx, did, |meta| {

src/librustc/middle/typeck/infer/lattice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ impl<'f> CombineFieldsLatticeMethods for CombineFields<'f> {
277277
let _indent = indenter();
278278

279279
// First, relate the lower/upper bounds of A and B.
280-
// Note that these relations *must* hold for us to
280+
// Note that these relations *must* hold for us
281281
// to be able to merge A and B at all, and relating
282282
// them explicitly gives the type inferencer more
283283
// information and helps to produce tighter bounds

src/librustc/middle/typeck/infer/region_inference/doc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ In this example, there is a region for the fn body block as a whole,
149149
and then a subregion for the declaration of the local variable.
150150
Within that, there are sublifetimes for the assignment pattern and
151151
also the expression `x + y`. The expression itself has sublifetimes
152-
for evaluating `x` and and `y`.
152+
for evaluating `x` and `y`.
153153
154154
## Function calls
155155

src/librustc/middle/typeck/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl Repr for vtable_origin {
197197
pub type vtable_map = @RefCell<HashMap<ast::NodeId, vtable_res>>;
198198

199199

200-
// Information about the vtable resolutions for for a trait impl.
200+
// Information about the vtable resolutions for a trait impl.
201201
// Mostly the information is important for implementing default
202202
// methods.
203203
#[deriving(Clone)]

src/librustc/middle/typeck/rscope.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use syntax::codemap::Span;
1818
use syntax::opt_vec::OptVec;
1919

2020
/// Defines strategies for handling regions that are omitted. For
21-
/// example, if one writes the type `&Foo`, then the lifetime of of
21+
/// example, if one writes the type `&Foo`, then the lifetime of
2222
/// this reference has been omitted. When converting this
2323
/// type, the generic functions in astconv will invoke `anon_regions`
2424
/// on the provided region-scope to decide how to translate this

src/librustdoc/clean.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ impl Clean<Item> for doctree::Struct {
766766
}
767767
}
768768

769-
/// This is a more limited form of the standard Struct, different in that it
769+
/// This is a more limited form of the standard Struct, different in that
770770
/// it lacks the things most items have (name, id, parameterization). Found
771771
/// only as a variant in an enum.
772772
#[deriving(Clone, Encodable, Decodable)]

src/libstd/comm/shared.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ impl<T: Send> Packet<T> {
302302
}
303303
};
304304
match ret {
305-
// See the discussion in the stream implementation for why we we
305+
// See the discussion in the stream implementation for why we
306306
// might decrement steals.
307307
Some(data) => {
308308
if self.steals > MAX_STEALS {

src/libstd/io/buffered.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub struct BufferedReader<R> {
5050
}
5151

5252
impl<R: Reader> BufferedReader<R> {
53-
/// Creates a new `BufferedReader` with with the specified buffer capacity
53+
/// Creates a new `BufferedReader` with the specified buffer capacity
5454
pub fn with_capacity(cap: uint, inner: R) -> BufferedReader<R> {
5555
// It's *much* faster to create an uninitialized buffer than it is to
5656
// fill everything in with 0. This buffer is entirely an implementation
@@ -137,7 +137,7 @@ pub struct BufferedWriter<W> {
137137
}
138138

139139
impl<W: Writer> BufferedWriter<W> {
140-
/// Creates a new `BufferedWriter` with with the specified buffer capacity
140+
/// Creates a new `BufferedWriter` with the specified buffer capacity
141141
pub fn with_capacity(cap: uint, inner: W) -> BufferedWriter<W> {
142142
// See comments in BufferedReader for why this uses unsafe code.
143143
let mut buf = vec::with_capacity(cap);

src/libstd/io/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl File {
103103
/// `FileMode` and `FileAccess` provide information about the permissions
104104
/// context in which a given stream is created. More information about them
105105
/// can be found in `std::io`'s docs. If a file is opened with `Write`
106-
/// or `ReadWrite` access, then it will be created it it does not already
106+
/// or `ReadWrite` access, then it will be created it does not already
107107
/// exist.
108108
///
109109
/// Note that, with this function, a `File` is returned regardless of the

src/libstd/io/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ pub trait Reader {
377377
///
378378
/// # Error
379379
///
380-
/// Fails with the same conditions as `read`. Additionally returns error on
380+
/// Fails with the same conditions as `read`. Additionally returns error
381381
/// on EOF. Note that if an error is returned, then some number of bytes may
382382
/// have already been consumed from the underlying reader, and they are lost
383383
/// (not returned as part of the error). If this is unacceptable, then it is

src/libstd/kinds.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ pub mod marker {
8484
/// The type system would currently infer that the value of
8585
/// the type parameter `T` is irrelevant, and hence a `S<int>` is
8686
/// a subtype of `S<~[int]>` (or, for that matter, `S<U>` for
87-
/// for any `U`). But this is incorrect because `get()` converts the
87+
/// any `U`). But this is incorrect because `get()` converts the
8888
/// `*()` into a `*T` and reads from it. Therefore, we should include the
8989
/// a marker field `CovariantType<T>` to inform the type checker that
90-
/// `S<T>` is a subtype of `S<U>` if `T` is a a subtype of `U`
90+
/// `S<T>` is a subtype of `S<U>` if `T` is a subtype of `U`
9191
/// (for example, `S<&'static int>` is a subtype of `S<&'a int>`
9292
/// for some lifetime `'a`, but not the other way around).
9393
#[lang="covariant_type"]
@@ -125,7 +125,7 @@ pub mod marker {
125125
/// The type system would currently infer that the value of
126126
/// the type parameter `T` is irrelevant, and hence a `S<int>` is
127127
/// a subtype of `S<~[int]>` (or, for that matter, `S<U>` for
128-
/// for any `U`). But this is incorrect because `get()` converts the
128+
/// any `U`). But this is incorrect because `get()` converts the
129129
/// `*()` into a `fn(T)` and then passes a value of type `T` to it.
130130
///
131131
/// Supplying a `ContravariantType` marker would correct the

src/libsync/sync/mutex.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
// leading to fairly decent performance for both native threads and green
5454
// threads on various workloads (uncontended and contended).
5555
//
56-
// The crux of this implementation is an atomic work which is CAS'd on many many
56+
// The crux of this implementation is an atomic work which is CAS'd on many
5757
// times in order to manage a few flags about who's blocking where and whether
5858
// it's locked or not.
5959

src/test/bench/rt-messaging-ping-pong.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extern crate extra;
2222
use std::os;
2323
use std::uint;
2424

25-
// This is a simple bench that creates M pairs of of tasks. These
25+
// This is a simple bench that creates M pairs of tasks. These
2626
// tasks ping-pong back and forth over a pair of streams. This is a
2727
// cannonical message-passing benchmark as it heavily strains message
2828
// passing and almost nothing else.

src/test/bench/task-perf-jargon-metal-smoke.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// option. This file may not be copied, modified, or distributed
1111
// except according to those terms.
1212

13-
// Test performance of a task "spawn ladder", in which children task have many
13+
// Test performance of a task "spawn ladder", in which children task have
1414
// many ancestor taskgroups, but with only a few such groups alive at a time.
1515
// Each child task has to enlist as a descendant in each of its ancestor
1616
// groups, but that shouldn't have to happen for already-dead groups.

src/test/run-fail/rt-set-exit-status-fail.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use std::os;
1515
fn main() {
1616
error!("whatever");
1717
// Setting the exit status only works when the scheduler terminates
18-
// normally. In this case we're going to fail, so instead of of
18+
// normally. In this case we're going to fail, so instead of
1919
// returning 50 the process will return the typical rt failure code.
2020
os::set_exit_status(50);
2121
fail!();

0 commit comments

Comments
 (0)