Skip to content

Commit 7ce700a

Browse files
committed
auto merge of #6966 : alco/rust/fix-typo, r=sanxiyn
2 parents 7e62ad6 + e75572c commit 7ce700a

File tree

19 files changed

+24
-25
lines changed

19 files changed

+24
-25
lines changed

doc/rust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ with matching types and type parameter counts.
12971297

12981298
An implementation can take type parameters,
12991299
which can be different from the type parameters taken by the trait it implements.
1300-
Implementation parameters are written after after the `impl` keyword.
1300+
Implementation parameters are written after the `impl` keyword.
13011301

13021302
~~~~
13031303
# trait Seq<T> { }

src/libextra/arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl<'self> Condvar<'self> {
9696

9797
/**
9898
* Wake up all blocked tasks on a specified condvar (as
99-
* sync::cond.broadcast_on). Returns Returns the number of tasks woken.
99+
* sync::cond.broadcast_on). Returns the number of tasks woken.
100100
*/
101101
#[inline(always)]
102102
pub fn broadcast_on(&self, condvar_id: uint) -> uint {

src/libextra/treemap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use core::uint;
1919
use core::util::{swap, replace};
2020

2121
// This is implemented as an AA tree, which is a simplified variation of
22-
// a red-black tree where where red (horizontal) nodes can only be added
22+
// a red-black tree where red (horizontal) nodes can only be added
2323
// as a right child. The time complexity is the same, and re-balancing
2424
// operations are more frequent but also cheaper.
2525

src/librustc/middle/borrowck/check_loans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl<'self> CheckLoanCtxt<'self> {
7676
scope_id: ast::node_id,
7777
op: &fn(&Loan) -> bool)
7878
-> bool {
79-
//! Iterates over each loan that that has been issued
79+
//! Iterates over each loan that has been issued
8080
//! on entrance to `scope_id`, regardless of whether it is
8181
//! actually *in scope* at that point. Sometimes loans
8282
//! are issued for future scopes and thus they may have been
@@ -219,7 +219,7 @@ impl<'self> CheckLoanCtxt<'self> {
219219
self.bccx.span_err(
220220
new_loan.span,
221221
fmt!("cannot borrow `%s` as mutable \
222-
more than once at at a time",
222+
more than once at a time",
223223
self.bccx.loan_path_to_str(new_loan.loan_path)));
224224
self.bccx.span_note(
225225
old_loan.span,

src/librustc/middle/borrowck/gather_loans/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ mod gather_moves;
4040

4141
/// Context used while gathering loans:
4242
///
43-
/// - `bccx`: the the borrow check context
43+
/// - `bccx`: the borrow check context
4444
/// - `item_ub`: the id of the block for the enclosing fn/method item
4545
/// - `root_ub`: the id of the outermost block for which we can root
4646
/// an `@T`. This is the id of the innermost enclosing

src/librustc/middle/liveness.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ impl Liveness {
11131113
}
11141114

11151115
expr_again(opt_label) => {
1116-
// Find which label this expr continues to to
1116+
// Find which label this expr continues to
11171117
let sc = self.find_loop_scope(opt_label, expr.id, expr.span);
11181118

11191119
// Now that we know the label we're going to,

src/librustc/middle/resolve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ pub enum RibKind {
206206
FunctionRibKind(node_id /* func id */, node_id /* body id */),
207207

208208
// We passed through an impl or trait and are now in one of its
209-
// methods. Allow references to ty params that that impl or trait
209+
// methods. Allow references to ty params that impl or trait
210210
// binds. Disallow any other upvars (including other ty params that are
211211
// upvars).
212212
// parent; method itself

src/librustc/middle/trans/closure.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ pub fn trans_expr_fn(bcx: block,
374374
* - `decl`
375375
* - `body`
376376
* - `outer_id`: The id of the closure expression with the correct
377-
* type. This is usually the same as as `user_id`, but in the
377+
* type. This is usually the same as `user_id`, but in the
378378
* case of a `for` loop, the `outer_id` will have the return
379379
* type of boolean, and the `user_id` will have the return type
380380
* of `nil`.

src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ pub enum AutoRef {
221221
// implementations.
222222
//
223223
// This is a map from ID of each implementation to the method info and trait
224-
// method ID of each of the default methods belonging to the trait that that
224+
// method ID of each of the default methods belonging to the trait that
225225
// implementation implements.
226226
pub type ProvidedMethodsMap = @mut HashMap<def_id,@mut ~[@ProvidedMethodInfo]>;
227227

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,7 @@ impl Coerce {
369369

370370
// although borrowed ptrs and unsafe ptrs have the same
371371
// representation, we still register an AutoDerefRef so that
372-
// regionck knows that that the region for `a` must be valid
373-
// here
372+
// regionck knows that the region for `a` must be valid here
374373
Ok(Some(@AutoDerefRef(AutoDerefRef {
375374
autoderefs: 1,
376375
autoref: Some(ty::AutoUnsafe(mt_b.mutbl))

src/libstd/core.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if the first line of each crate was
3333

3434
extern mod core;
3535

36-
This means that the contents of core can be accessed from from any context
36+
This means that the contents of core can be accessed from any context
3737
with the `core::` path prefix, as in `use core::vec`, `use core::task::spawn`,
3838
etc.
3939

src/libstd/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ pub fn zip_slice<T:Copy,U:Copy>(v: &const [T], u: &const [U])
14111411
/**
14121412
* Convert two vectors to a vector of pairs.
14131413
*
1414-
* Returns a vector of tuples, where the i-th tuple contains contains the
1414+
* Returns a vector of tuples, where the i-th tuple contains the
14151415
* i-th elements from each of the input vectors.
14161416
*/
14171417
pub fn zip<T, U>(mut v: ~[T], mut u: ~[U]) -> ~[(T, U)] {

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3093,7 +3093,7 @@ impl Parser {
30933093

30943094
self.expect(&token::LPAREN);
30953095

3096-
// A bit of complexity and lookahead is needed here in order to to be
3096+
// A bit of complexity and lookahead is needed here in order to be
30973097
// backwards compatible.
30983098
let lo = self.span.lo;
30993099
let explicit_self = match *self.token {

src/libsyntax/print/pprust.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ pub fn print_fn(s: @ps,
16721672

16731673
pub fn print_fn_args(s: @ps, decl: &ast::fn_decl,
16741674
opt_explicit_self: Option<ast::explicit_self_>) {
1675-
// It is unfortunate to duplicate the commasep logic, but we we want the
1675+
// It is unfortunate to duplicate the commasep logic, but we want the
16761676
// self type and the args all in the same box.
16771677
box(s, 0u, inconsistent);
16781678
let mut first = true;
@@ -1919,7 +1919,7 @@ pub fn print_ty_fn(s: @ps,
19191919
zerobreak(s.s);
19201920

19211921
popen(s);
1922-
// It is unfortunate to duplicate the commasep logic, but we we want the
1922+
// It is unfortunate to duplicate the commasep logic, but we want the
19231923
// self type and the args all in the same box.
19241924
box(s, 0u, inconsistent);
19251925
let mut first = true;

src/rt/arch/i386/morestack.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
2121
Each Rust function contains an LLVM-generated prologue that
2222
compares the stack space required for the current function to
23-
the space space remaining in the current stack segment,
23+
the space remaining in the current stack segment,
2424
maintained in a platform-specific TLS slot. The stack limit
2525
is strategically maintained by the Rust runtime so that it is
2626
always in place whenever a Rust function is running.
@@ -55,7 +55,7 @@
5555
tiny fraction of a frame (containing just a return pointer
5656
and, on 32-bit, the arguments to __morestack).
5757
58-
We deal with this by claiming that that little bit of stack
58+
We deal with this by claiming that little bit of stack
5959
is actually part of the __morestack frame, encoded as
6060
DWARF call frame instructions (CFI) by .cfi assembler
6161
pseudo-ops.
@@ -119,7 +119,7 @@ MORESTACK:
119119
// telling the unwinder to consider the Canonical Frame
120120
// Address (CFA) for this frame to be the value of the stack
121121
// pointer prior to entry to the original function, whereas
122-
// the CFA would typically be the the value of the stack
122+
// the CFA would typically be the value of the stack
123123
// pointer prior to entry to this function. This will allow
124124
// the unwinder to understand how to skip the tiny partial
125125
// frame that the original function created by calling
@@ -167,7 +167,7 @@ MORESTACK:
167167
// The arguments to upcall_new_stack
168168

169169
// The size of the stack arguments to copy to the new stack,
170-
// ane of the the arguments to __morestack
170+
// and of the arguments to __morestack
171171
movl 40(%esp),%eax
172172
movl %eax,8(%esp)
173173
// The address of the stack arguments to the original function

src/rt/rust_kernel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ rust_kernel::release_scheduler_id(rust_sched_id id) {
162162
}
163163

164164
/*
165-
Called by rust_sched_reaper to join every every terminating scheduler thread,
165+
Called by rust_sched_reaper to join every terminating scheduler thread,
166166
so that we can be sure they have completely exited before the process exits.
167167
If we don't join them then we can see valgrind errors due to un-freed pthread
168168
memory.

src/rt/rust_task.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ rust_task::prev_stack() {
614614
// The LLVM-generated segmented-stack function prolog compares the amount of
615615
// stack needed for each frame to the end-of-stack pointer stored in the
616616
// TCB. As an optimization, when the frame size is less than 256 bytes, it
617-
// will simply compare %esp to to the stack limit instead of subtracting the
617+
// will simply compare %esp to the stack limit instead of subtracting the
618618
// frame size. As a result we need our stack limit to account for those 256
619619
// bytes.
620620
const unsigned LIMIT_OFFSET = 256;

src/rt/rust_upcall.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ upcall_malloc(type_desc *td, uintptr_t size) {
191191

192192
// FIXME (#2861): Alias used by libcore/rt.rs to avoid naming conflicts with
193193
// autogenerated wrappers for upcall_malloc. Remove this when we fully move
194-
// away away from the C upcall path.
194+
// away from the C upcall path.
195195
extern "C" CDECL uintptr_t
196196
rust_upcall_malloc(type_desc *td, uintptr_t size) {
197197
return upcall_malloc(td, size);

src/test/run-pass/item-attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
uuid = "122bed0b-c19b-4b82-b0b7-7ae8aead7297",
2323
url = "http://rust-lang.org/src/extra")];
2424

25-
// These are are attributes of the following mod
25+
// These are attributes of the following mod
2626
#[attr1 = "val"]
2727
#[attr2 = "val"]
2828
mod test_first_item_in_file_mod {}

0 commit comments

Comments
 (0)