Skip to content

Commit 17d6b09

Browse files
committed
doc: remove duplicate words. Thanks, Matt Might!
1 parent b8880e3 commit 17d6b09

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/rust.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ keep the size and complexity of the language under control.
4646
very incomplete; only a modest number of sections have accompanying grammar
4747
rules. Formalizing the grammar accepted by the Rust parser is ongoing work,
4848
but future versions of this document will contain a complete
49-
grammar. Moreover, we hope that this grammar will be be extracted and verified
49+
grammar. Moreover, we hope that this grammar will be extracted and verified
5050
as LL(1) by an automated grammar-analysis tool, and further tested against the
5151
Rust sources. Preliminary versions of this automation exist, but are not yet
5252
complete.
@@ -1450,7 +1450,7 @@ init : [ '=' | '<-' ] expr ;
14501450
~~~~~~~~
14511451

14521452

1453-
A _slot declaration_ has one one of two forms:
1453+
A _slot declaration_ has one of two forms:
14541454

14551455
* `let` `pattern` `optional-init`;
14561456
* `let` `pattern` : `type` `optional-init`;
@@ -2647,7 +2647,7 @@ The machine types are the following:
26472647
#### Machine-dependent integer types
26482648

26492649
The Rust type `uint`^[A Rust `uint` is analogous to a C99 `uintptr_t`.] is an
2650-
unsigned integer type with with target-machine-dependent size. Its size, in
2650+
unsigned integer type with target-machine-dependent size. Its size, in
26512651
bits, is equal to the number of bits required to hold any memory address on
26522652
the target machine.
26532653

doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2223,7 +2223,7 @@ native mod something {
22232223
Most native C code use the cdecl calling convention, so that is what
22242224
Rust uses by default when calling native functions. Some native functions,
22252225
most notably the Windows API, use other calling conventions, so Rust
2226-
provides a way to to hint to the compiler which is expected by using
2226+
provides a way to hint to the compiler which is expected by using
22272227
the `"abi"` attribute:
22282228

22292229
~~~~

0 commit comments

Comments
 (0)