Skip to content

Commit 70c0cc7

Browse files
authored
Merge pull request #3613 from growfrow/master
chore: remove repetitive words
2 parents 766f61b + 9d706c0 commit 70c0cc7

8 files changed

+8
-8
lines changed

text/1298-incremental-compilation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ saved. The effect of saving fewer things (such as only saving object
149149
code) will simply be to make incremental compilation somewhat less
150150
effective, since we will be forced to re-type-check and re-trans
151151
functions where we might have gotten away with only generating new
152-
object code. However, this is expected to be be a second order effect
152+
object code. However, this is expected to be a second order effect
153153
overall, particularly since LLVM optimization time can be a very large
154154
portion of compilation.
155155

text/1398-kinds-of-allocators.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ comes, it may come with a new trait (call it `GcAwareAllocator`).
917917
option we choose can be incorporated into the meta-data for a
918918
crate.)
919919

920-
Allocators that are are GC-compatible have to explicitly declare
920+
Allocators that are GC-compatible have to explicitly declare
921921
themselves as such, by implementing `GcAwareAllocator`, which will
922922
then impose new conditions on the methods of `Allocator`, for example
923923
ensuring e.g. that allocated blocks of memory can be scanned

text/2091-inline-semantic.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ information in such a strange way. There are two restrictions that force us to a
330330
solution for systems languages like Rust because optimization often collapses multiple levels
331331
of function calls. In some embedded systems, the backtrace may even be unavailable!
332332

333-
2. Solutions that use default function arguments alongside normal arguments are are often used in
333+
2. Solutions that use default function arguments alongside normal arguments are often used in
334334
languages that do not perform inference higher than statement level, e.g. Swift and C#. Rust
335335
does not (yet) support default function arguments or function overloading because they interfere
336336
with type inference, so such solutions are ruled out.

text/2203-const-repeat-expr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ argues that the change is quite intuitive.
175175

176176
The alternative, in addition to simply not doing this, is to modify a host of
177177
other constructs such as [`mem::uninitialized()`], for loops over iterators,
178-
[`ptr::write`] to be `const`, which is is a larger change. The design offered by
178+
[`ptr::write`] to be `const`, which is a larger change. The design offered by
179179
this RFC is therefore the simplest and most non-intrusive design. It is also
180180
the most consistent.
181181

text/2585-unsafe-block-in-unsafe-fn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ fn` for functions that are "unsafe to call" but do not implicitly have an
164164
trait` for traits, though the behavior would be the same as `unsafe trait`.
165165

166166
We could introduce named proof obligations (proposed by @Centril) such that the
167-
compiler can be be told (to some extend) if the assumptions made by the `unsafe
167+
compiler can be told (to some extend) if the assumptions made by the `unsafe
168168
fn` are sufficient to discharge the requirements of the unsafe operations.
169169

170170
We could restrict this requirement to use `unsafe` blocks in `unsafe fn` to

text/2603-rust-symbol-name-mangling-v0.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ and `NCNvNtC7mycrate3foo3bars_0` respectively.
348348
Methods are nested within `impl` or `trait` items. As such it would be
349349
possible to construct their symbol names as paths like
350350
`my_crate::foo::{{impl}}::some_method` where `{{impl}}` somehow identifies
351-
the the `impl` in question. Since `impl`s don't have names, we'd have to
351+
the `impl` in question. Since `impl`s don't have names, we'd have to
352352
use an indexing scheme like the one used for closures (and indeed, this is
353353
what the compiler does internally). Adding in generic arguments to, this
354354
would lead to symbol names looking like

text/3308-offset_of.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ types:
202202
In this case, `$field` must share a name or tuple index with a field which:
203203
- Exists on `$Container`.
204204
- Is visible at the location where `offset_of!` is invoked (but there is no
205-
requirement that fields other than than `$field` be visible there)
205+
requirement that fields other than `$field` be visible there)
206206

207207
2. An anonymous tuple type.
208208

text/3535-constants-in-patterns.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ Some possible alternatives include:
245245
- **Reject pointers completely.**
246246
This was considered, but matching against sentinel values of raw pointers is a pretty common pattern, so we should have a really good reason to break that code---and we do not.
247247
- **Involve `Eq`.**
248-
This RFC is is completely defined in terms of `PartialEq`; the `Eq` trait plays no role.
248+
This RFC is completely defined in terms of `PartialEq`; the `Eq` trait plays no role.
249249
This is primarily because we allow floating-point values in patterns, which means that we cannot require the constant to implement `Eq` in the first place.
250250
- **Do not require `PartialEq`.**
251251
Currently we check both that the constant value has recursive structural equality, and that its type implements `PartialEq`.

0 commit comments

Comments
 (0)