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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
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| {

0 commit comments

Comments
 (0)