Skip to content

Commit 215f693

Browse files
committed
Fix several typos in comments
liblog, libregex, librustc, libstd
1 parent 88c743d commit 215f693

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/liblog/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
//! includes 'foo'.
138138
//! * `info/f.o` turns on all info logging where the log message includes 'foo',
139139
//! 'f1o', 'fao', etc.
140-
//! * `hello=debug/foo*foo` turns on debug logging for 'hello' where the the log
140+
//! * `hello=debug/foo*foo` turns on debug logging for 'hello' where the log
141141
//! message includes 'foofoo' or 'fofoo' or 'fooooooofoo', etc.
142142
//! * `error,hello=warn/[0-9] scopes` turn on global error logging and also warn for
143143
//! hello. In both cases the log message must include a single digit number

src/libregex/re.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ pub struct NoExpand<'t>(pub &'t str);
558558
/// Replacer describes types that can be used to replace matches in a string.
559559
pub trait Replacer {
560560
/// Returns a possibly owned string that is used to replace the match
561-
/// corresponding the the `caps` capture group.
561+
/// corresponding to the `caps` capture group.
562562
///
563563
/// The `'a` lifetime refers to the lifetime of a borrowed string when
564564
/// a new owned string isn't needed (e.g., for `NoExpand`).

src/librustc/middle/traits/select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
345345
// matches this obligation, then we can assume that the
346346
// obligation is satisfied for now (still all other conditions
347347
// must be met of course). One obvious case this comes up is
348-
// marker traits like `Send`. Think of a a linked list:
348+
// marker traits like `Send`. Think of a linked list:
349349
//
350350
// struct List<T> { data: T, next: Option<Box<List<T>>> {
351351
//

src/libstd/collections/hash/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ impl<'a, K, V> Iterator<RawBucket<K, V>> for RawBuckets<'a, K, V> {
716716
}
717717

718718
/// An iterator that moves out buckets in reverse order. It leaves the table
719-
/// in an an inconsistent state and should only be used for dropping
719+
/// in an inconsistent state and should only be used for dropping
720720
/// the table's remaining entries. It's used in the implementation of Drop.
721721
struct RevMoveBuckets<'a, K, V> {
722722
raw: RawBucket<K, V>,

src/libstd/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const BUF_BYTES : uint = 2048u;
7777
/// # Failure
7878
///
7979
/// Fails if the current working directory value is invalid:
80-
/// Possibles cases:
80+
/// Possible cases:
8181
///
8282
/// * Current directory does not exist.
8383
/// * There are insufficient permissions to access the current directory.

0 commit comments

Comments
 (0)