Skip to content

Commit ea5be96

Browse files
committed
Fix some more typos, this time words that are duplicated.
1 parent 47cb3c5 commit ea5be96

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/libcore/ops/unsize.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use marker::Unsize;
2424
/// Such an impl can only be written if `Foo<T>` has only a single non-phantomdata
2525
/// field involving `T`. If the type of that field is `Bar<T>`, an implementation
2626
/// of `CoerceUnsized<Bar<U>> for Bar<T>` must exist. The coercion will work by
27-
/// by coercing the `Bar<T>` field into `Bar<U>` and filling in the rest of the fields
27+
/// coercing the `Bar<T>` field into `Bar<U>` and filling in the rest of the fields
2828
/// from `Foo<T>` to create a `Foo<U>`. This will effectively drill down to a pointer
2929
/// field and coerce that.
3030
///

src/libproc_macro/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl fmt::Display for TokenStream {
111111

112112
/// `quote!(..)` accepts arbitrary tokens and expands into a `TokenStream` describing the input.
113113
/// For example, `quote!(a + b)` will produce a expression, that, when evaluated, constructs
114-
/// constructs the `TokenStream` `[Word("a"), Op('+', Alone), Word("b")]`.
114+
/// the `TokenStream` `[Word("a"), Op('+', Alone), Word("b")]`.
115115
///
116116
/// Unquoting is done with `$`, and works by taking the single next ident as the unquoted term.
117117
/// To quote `$` itself, use `$$`.

src/librustc_driver/driver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ pub fn source_name(input: &Input) -> String {
282282
/// This is a somewhat higher level controller than a Session - the Session
283283
/// controls what happens in each phase, whereas the CompileController controls
284284
/// whether a phase is run at all and whether other code (from outside the
285-
/// the compiler) is run between phases.
285+
/// compiler) is run between phases.
286286
///
287287
/// Note that if compilation is set to stop and a callback is provided for a
288288
/// given entry point, the callback is called before compilation is stopped.

0 commit comments

Comments
 (0)