Skip to content

Commit a932b4a

Browse files
committed
Fix typos in RFCs 1251-1500
1 parent b24c899 commit a932b4a

11 files changed

+33
-33
lines changed

text/1252-open-options.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ If you read a file sequentially the read-ahead is beneficial, for completely
557557
random access it can become a penalty.
558558

559559
- `Default` uses the generally good heuristics of the operating system.
560-
- `Sequential` indicates sequential but not neccesary consecutive access.
560+
- `Sequential` indicates sequential but not necessary consecutive access.
561561
With this the os may increase the amount of data that is read ahead.
562562
- `Random` indicates mainly random access. The os may disable its read-ahead
563563
cache.
@@ -611,7 +611,7 @@ This guarantees every write will not return before the data is written to disk.
611611
These options improve reliability as and you can never accidentally forget a
612612
sync.
613613

614-
Whether perfermance with these options is worse than with the stand-alone
614+
Whether performance with these options is worse than with the stand-alone
615615
functions is hard to say. With these options the data maybe has to be
616616
synchronised more often. But the stand-alone functions often sync outstanding
617617
writes to all files, while the options possibly sync only the current file.

text/1257-drain-range-2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ from a vector.
1919

2020
`drain` thus serves both to consume all or some elements from a collection without
2121
consuming the collection itself. The ranged `drain` allows bulk removal of
22-
elements, more efficently than any other safe API.
22+
elements, more efficiently than any other safe API.
2323

2424
# Detailed design
2525

@@ -51,7 +51,7 @@ The following collections need updated implementations:
5151
does.
5252

5353
`LinkedList` should implement `.drain(range)` for index ranges. Just
54-
like the other seqences, this is a `O(n)` operation, and `LinkedList` already
54+
like the other sequences, this is a `O(n)` operation, and `LinkedList` already
5555
has other indexed methods (`.split_off()`).
5656

5757
## `BTreeMap` and `BTreeSet`

text/1291-promote-libc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ value, so even if you were restricted to a particular subset it's not clear that
264264
a program would automatically be more portable.
265265

266266
That being said, it would still be useful to have these abstractions to *some
267-
degree*, but the filp side is that it's easy to build this sort of layer on top
267+
degree*, but the flip side is that it's easy to build this sort of layer on top
268268
of `libc` as designed here externally on crates.io. For example `extern crate
269269
posix` could just depend on `libc` and reexport all the contents for the
270270
POSIX standard, perhaps with tweaked signatures here and there to work better
@@ -288,7 +288,7 @@ in the immedidate future.
288288
unclear how much portability using these standards actually buys you.
289289

290290
* The crate could be split up into multiple crates which represent an exact
291-
correspondance to system libraries, but this has the downside of using common
291+
correspondence to system libraries, but this has the downside of using common
292292
functions available on both OSX and Linux would require at least two `extern
293293
crate` directives and dependencies.
294294

text/1298-incremental-compilation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ recompiling all of them. Our plan is to phase span support in incrementally:
541541
particular AST node (relative to the root of the item). Since we
542542
are hashing the structure of the AST, we know the AST from the
543543
previous and current compilation will match, and thus we can
544-
compute the current span by finding tha corresponding AST node and
544+
compute the current span by finding the corresponding AST node and
545545
loading its span. This will require some refactoring and work however.
546546

547547
<a id="optimization"></a>

text/1317-ide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ that different clients will not benefit from each other's innovations.
280280

281281
The RLS could do more - actually perform some of the processing tasks usually
282282
done by IDEs (such as editing source code) or other tools (refactoring,
283-
reformating, etc.).
283+
reformatting, etc.).
284284

285285

286286
# Unresolved questions
@@ -298,5 +298,5 @@ What kind of IPC protocol to use? HTTP is popular and simple to deal with. It's
298298
platform-independent and used in many similar pieces of software. On the other
299299
hand it is heavyweight and requires pulling in large libraries, and requires
300300
some attention to security issues. Alternatives are some kind of custom
301-
prototcol, or using a solution like Thrift. My prefernce is for HTTP, since it
301+
protocol, or using a solution like Thrift. My preference is for HTTP, since it
302302
has been proven in similar situations.

text/1327-dropck-param-eyepatch.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ parameters the destructor is guaranteed not to access.
1414

1515
Specifically, this RFC proposes adding the capability to attach
1616
attributes to the binding sites for generic parameters (i.e. lifetime
17-
and type paramters). Atop that capability, this RFC proposes adding a
17+
and type parameters). Atop that capability, this RFC proposes adding a
1818
`#[may_dangle]` attribute that indicates that a given lifetime or type
1919
holds data that must not be accessed during the dynamic extent of that
2020
`drop` invocation.
@@ -153,7 +153,7 @@ to be proposed in a follow-up RFC.
153153
Having said that, here is the proposed short-term solution:
154154

155155
1. Add the ability to attach attributes to syntax that binds formal
156-
lifetime or type parmeters. For the purposes of this RFC, the only
156+
lifetime or type parameters. For the purposes of this RFC, the only
157157
place in the syntax that requires such attributes are `impl`
158158
blocks, as in `impl<T> Drop for Type<T> { ... }`
159159

@@ -531,7 +531,7 @@ Drawbacks of fn-drop-with-where-clauses:
531531

532532
I actually do not give this drawback much weight; resolving this
533533
may be merely a matter of just trying to do it: e.g., build up the
534-
set of where-clauses when we make the ADT's representatin, and
534+
set of where-clauses when we make the ADT's representations, and
535535
then have `dropck` insert instantiate and insert them as needed.
536536

537537
* It might have the wrong ergonomics for developers: It seems bad to

text/1398-kinds-of-allocators.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ we summarize the high-level points of the `Allocator` API.
9999
individual sections of code.)
100100

101101
* Basic implementation of the trait requires just two methods
102-
(`alloc` and `dealloc`). You can get an initial implemention off
102+
(`alloc` and `dealloc`). You can get an initial implementation off
103103
the ground with relatively little effort.
104104

105105
* All methods that can fail to satisfy a request return a `Result`
@@ -126,7 +126,7 @@ individual sections of code.)
126126

127127
* Heterogenous structure; e.g. `layout1.extend(layout2)`,
128128

129-
* Homogenous array types: `layout.repeat(n)` (for `n: usize`),
129+
* Homogeneous array types: `layout.repeat(n)` (for `n: usize`),
130130

131131
* There are packed and unpacked variants for the latter two methods.
132132

@@ -270,7 +270,7 @@ Since clients are not allowed to have blocks that outlive their
270270
associated allocator (see the [lifetimes][] section),
271271
it is sound for us to always drop the backing storage for an allocator
272272
when the allocator itself is dropped
273-
(regardless of what sequence of `alloc`/`dealloc` interactions occured
273+
(regardless of what sequence of `alloc`/`dealloc` interactions occurred
274274
with the allocator's clients).
275275

276276
```rust
@@ -470,7 +470,7 @@ almost certainly require a *default type*: `Vec<T:
470470
A:Allocator=HeapAllocator>` and
471471
`HashMap<K,V,A:Allocator=HeapAllocator>`.
472472

473-
Default type parameters themselves, in the context of type defintions,
473+
Default type parameters themselves, in the context of type definitions,
474474
are a stable part of the Rust language.
475475

476476
However, the exact semantics of how default type parameters interact
@@ -640,7 +640,7 @@ in a formal manner, in the style of [IETF RFC 2119][].)
640640

641641
5. (for allocator impls and clients) if an allocator is cloneable, the
642642
client *can assume* that all clones
643-
are interchangably compatible in terms of their memory blocks: if
643+
are interchangeably compatible in terms of their memory blocks: if
644644
allocator `a2` is a clone of `a1`, then one can allocate a block
645645
from `a1` and return it to `a2`, or vice versa, or use `a2.realloc`
646646
on the block, et cetera.
@@ -884,7 +884,7 @@ The Rust project has control over the `libstd` provided allocators, so
884884
the team can adapt them as necessary to fit the needs of whatever GC
885885
designs come around. But the same is not true for user-defined
886886
allocators: we want to ensure that adding support for them does not
887-
inadvertantly kill any chance for adding GC later.
887+
inadvertently kill any chance for adding GC later.
888888

889889
### The inspiration for Layout
890890

@@ -1009,7 +1009,7 @@ few motivating examples that *are* clearly feasible and useful.
10091009
offset) versus `Layout::array` (where the offset is derivable from
10101010
the input `T`).
10111011

1012-
* Such a constraint would have precendent; in particular, the
1012+
* Such a constraint would have precedent; in particular, the
10131013
`aligned_alloc` function of C11 requires the given size
10141014
be a multiple of the alignment.
10151015

@@ -1072,7 +1072,7 @@ few motivating examples that *are* clearly feasible and useful.
10721072
that reborrowing machinery is available to the client code.)
10731073

10741074
Put more simply, requiring that allocators implement `Clone` means
1075-
that it will *not* be pratical to do
1075+
that it will *not* be practical to do
10761076
`impl<'a> Allocator for &'a mut MyUniqueAlloc`.
10771077

10781078
By using `&mut self` for the allocation methods, we can encode
@@ -1204,7 +1204,7 @@ few motivating examples that *are* clearly feasible and useful.
12041204

12051205
# Change History
12061206

1207-
* Changed `fn usable_size` to return `(l, m)` rathern than just `m`.
1207+
* Changed `fn usable_size` to return `(l, m)` rather than just `m`.
12081208

12091209
* Removed `fn is_transient` from `trait AllocError`, and removed discussion
12101210
of transient errors from the API.
@@ -1583,7 +1583,7 @@ impl Layout {
15831583
/// Creates a layout describing the record for `self` followed by
15841584
/// `next` with no additional padding between the two. Since no
15851585
/// padding is inserted, the alignment of `next` is irrelevant,
1586-
/// and is not incoporated *at all* into the resulting layout.
1586+
/// and is not incorporated *at all* into the resulting layout.
15871587
///
15881588
/// Returns `(k, offset)`, where `k` is layout of the concatenated
15891589
/// record and `offset` is the relative location, in bytes, of the
@@ -1654,7 +1654,7 @@ impl Layout {
16541654
/// Creates a layout describing the record for `self` followed by
16551655
/// `next` with no additional padding between the two. Since no
16561656
/// padding is inserted, the alignment of `next` is irrelevant,
1657-
/// and is not incoporated *at all* into the resulting layout.
1657+
/// and is not incorporated *at all* into the resulting layout.
16581658
///
16591659
/// Returns `(k, offset)`, where `k` is layout of the concatenated
16601660
/// record and `offset` is the relative location, in bytes, of the
@@ -1715,7 +1715,7 @@ pub enum AllocErr {
17151715
/// satisfying the original request. This condition implies that
17161716
/// such an allocation request will never succeed on the given
17171717
/// allocator, regardless of environment, memory pressure, or
1718-
/// other contextual condtions.
1718+
/// other contextual conditions.
17191719
///
17201720
/// For example, an allocator that does not support zero-sized
17211721
/// blocks can return this error variant.
@@ -1810,7 +1810,7 @@ pub unsafe trait Allocator {
18101810
/// practice this means implementors should eschew allocating,
18111811
/// especially from `self` (directly or indirectly).
18121812
///
1813-
/// Implementions of this trait's allocation methods are discouraged
1813+
/// Implementations of this trait's allocation methods are discouraged
18141814
/// from panicking (or aborting) in the event of memory exhaustion;
18151815
/// instead they should return an appropriate error from the
18161816
/// invoked method, and let the client decide whether to invoke

text/1422-pub-restricted.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ are unrestricted?
399399
The simple answer is: No, associated items are not implicitly `pub`;
400400
at least, not in general. (They are not in general implicitly `pub`
401401
today either, as discussed in [RFC 136][when public (RFC 136)].)
402-
(If they were implictly `pub`, things would be difficult; further
402+
(If they were implicitly `pub`, things would be difficult; further
403403
discussion in attached [appendix][associated items digression].)
404404

405405
[when public (RFC 136)]: https://github.com/rust-lang/rfcs/blob/master/text/0136-no-privates-in-public.md#when-is-an-item-public
@@ -756,7 +756,7 @@ innards of other modules.
756756
* "Fix" the mental model of privacy (if necessary) without extending
757757
the language.
758758

759-
The alternative is bascially saying: "Our existing system is fine; all
759+
The alternative is basically saying: "Our existing system is fine; all
760760
of the problems with it are due to bugs in the implementation"
761761

762762
I am sympathetic to this response. However, I think it doesn't
@@ -865,7 +865,7 @@ pub mod a {
865865

866866
However, since `b` is non-`pub`, its `pub` items and re-exports are
867867
solely accessible via the subhierarchy of its module parent (i.e.,
868-
`mod a`, as long as no entity attempts to re-export them to a braoder
868+
`mod a`, as long as no entity attempts to re-export them to a broader
869869
scope.
870870

871871
In other words, in some sense `mod b { pub use item; }` *could*
@@ -930,7 +930,7 @@ mod m {
930930
// What is reexported here?
931931
// Just `S4`?
932932
// Anything in `m` visible
933-
// to `n` (which is not consisent with the current treatment of
933+
// to `n` (which is not consistent with the current treatment of
934934
`pub` by globs).
935935

936936
pub use m::*;

text/1432-replace-slice.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Then, depending on the real length of the iterator:
135135
[drawbacks]: #drawbacks
136136

137137
Same as for any addition to `std`:
138-
not every program needs it, and standard library growth has a maintainance cost.
138+
not every program needs it, and standard library growth has a maintenance cost.
139139

140140
# Alternatives
141141
[alternatives]: #alternatives

text/1445-restrict-constants-in-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ are two main disadvantages:
165165
permit associated constants or generic integers to be used in a
166166
match statement.
167167

168-
#### Disadvantage: Weakened abstraction bounary
168+
#### Disadvantage: Weakened abstraction boundary
169169

170170
The single biggest concern with structural equality is that it
171171
introduces two distinct notions of equality: the `==` operator, based

0 commit comments

Comments
 (0)