Skip to content

Commit 3ab86fb

Browse files
committed
Fix some typos
1 parent 59f6b83 commit 3ab86fb

File tree

53 files changed

+83
-82
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+83
-82
lines changed

src/bootstrap/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ impl<'a> Builder<'a> {
333333
StepDescription::run(&Builder::get_step_descriptions(Kind::Doc), self, paths);
334334
}
335335

336-
/// Obtain a compiler at a given stage and for a given host. Explictly does
336+
/// Obtain a compiler at a given stage and for a given host. Explicitly does
337337
/// not take `Compiler` since all `Compiler` instances are meant to be
338338
/// obtained through this function, since it ensures that they are valid
339339
/// (i.e., built and assembled).
@@ -501,7 +501,7 @@ impl<'a> Builder<'a> {
501501
// crates). Let's say, for example that rustc itself depends on the
502502
// bitflags crate. If an external crate then depends on the
503503
// bitflags crate as well, we need to make sure they don't
504-
// conflict, even if they pick the same verison of bitflags. We'll
504+
// conflict, even if they pick the same version of bitflags. We'll
505505
// want to make sure that e.g. a plugin and rustc each get their
506506
// own copy of bitflags.
507507

src/bootstrap/doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ impl Step for Standalone {
306306
///
307307
/// This will list all of `src/doc` looking for markdown files and appropriately
308308
/// perform transformations like substituting `VERSION`, `SHORT_HASH`, and
309-
/// `STAMP` alongw ith providing the various header/footer HTML we've cutomized.
309+
/// `STAMP` along with providing the various header/footer HTML we've customized.
310310
///
311311
/// In the end, this is just a glorified wrapper around rustdoc!
312312
fn run(self, builder: &Builder) {

src/liballoc/allocator.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ impl Layout {
240240
///
241241
/// Returns `Some((k, offset))`, where `k` is layout of the concatenated
242242
/// record and `offset` is the relative location, in bytes, of the
243-
/// start of the `next` embedded witnin the concatenated record
243+
/// start of the `next` embedded within the concatenated record
244244
/// (assuming that the record itself starts at offset 0).
245245
///
246246
/// On arithmetic overflow, returns `None`.
@@ -297,7 +297,7 @@ impl Layout {
297297
///
298298
/// Returns `(k, offset)`, where `k` is layout of the concatenated
299299
/// record and `offset` is the relative location, in bytes, of the
300-
/// start of the `next` embedded witnin the concatenated record
300+
/// start of the `next` embedded within the concatenated record
301301
/// (assuming that the record itself starts at offset 0).
302302
///
303303
/// (The `offset` is always the same as `self.size()`; we use this
@@ -544,7 +544,7 @@ pub unsafe trait Alloc {
544544
/// practice this means implementors should eschew allocating,
545545
/// especially from `self` (directly or indirectly).
546546
///
547-
/// Implementions of the allocation and reallocation methods
547+
/// Implementations of the allocation and reallocation methods
548548
/// (e.g. `alloc`, `alloc_one`, `realloc`) are discouraged from
549549
/// panicking (or aborting) in the event of memory exhaustion;
550550
/// instead they should return an appropriate error from the

src/liballoc/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ impl String {
653653
/// * `capacity` needs to be the correct value.
654654
///
655655
/// Violating these may cause problems like corrupting the allocator's
656-
/// internal datastructures.
656+
/// internal data structures.
657657
///
658658
/// The ownership of `ptr` is effectively transferred to the
659659
/// `String` which may then deallocate, reallocate or change the

src/liballoc/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ impl<T> Vec<T> {
374374
/// * `capacity` needs to be the capacity that the pointer was allocated with.
375375
///
376376
/// Violating these may cause problems like corrupting the allocator's
377-
/// internal datastructures. For example it is **not** safe
377+
/// internal data structures. For example it is **not** safe
378378
/// to build a `Vec<u8>` from a pointer to a C `char` array and a `size_t`.
379379
///
380380
/// The ownership of `ptr` is effectively transferred to the

src/libcore/ops/place.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub trait Place<Data: ?Sized> {
6666
/// or `Copy`, since the `make_place` method takes `self` by value.
6767
#[unstable(feature = "placement_new_protocol", issue = "27779")]
6868
pub trait Placer<Data: ?Sized> {
69-
/// `Place` is the intermedate agent guarding the
69+
/// `Place` is the intermediate agent guarding the
7070
/// uninitialized state for `Data`.
7171
type Place: InPlace<Data>;
7272

src/libgraphviz/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ impl<'a> LabelText<'a> {
548548
}
549549

550550
/// Renders text as string suitable for a label in a .dot file.
551-
/// This includes quotes or suitable delimeters.
551+
/// This includes quotes or suitable delimiters.
552552
pub fn to_dot_string(&self) -> String {
553553
match self {
554554
&LabelStr(ref s) => format!("\"{}\"", s.escape_default()),

src/librustc/hir/intravisit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub enum NestedVisitorMap<'this, 'tcx: 'this> {
8787
/// Do not visit nested item-like things, but visit nested things
8888
/// that are inside of an item-like.
8989
///
90-
/// **This is the most common choice.** A very commmon pattern is
90+
/// **This is the most common choice.** A very common pattern is
9191
/// to use `visit_all_item_likes()` as an outer loop,
9292
/// and to have the visitor that visits the contents of each item
9393
/// using this setting.

src/librustc/hir/map/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ pub struct Map<'hir> {
248248
pub forest: &'hir Forest,
249249

250250
/// Same as the dep_graph in forest, just available with one fewer
251-
/// deref. This is a gratuitious micro-optimization.
251+
/// deref. This is a gratuitous micro-optimization.
252252
pub dep_graph: DepGraph,
253253

254254
/// NodeIds are sequential integers from 0, so we can be

src/librustc/hir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ impl Crate {
496496
&self.impl_items[&id]
497497
}
498498

499-
/// Visits all items in the crate in some determinstic (but
499+
/// Visits all items in the crate in some deterministic (but
500500
/// unspecified) order. If you just need to process every item,
501501
/// but don't care about nesting, this method is the best choice.
502502
///

0 commit comments

Comments
 (0)