Skip to content

Commit 872d107

Browse files
committed
Fix a few typos in the code
1 parent ecbfa47 commit 872d107

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/librustdoc/html/highlight.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ pub enum Class {
107107
///
108108
/// The classifier will call into the `Writer` implementation as it finds spans
109109
/// of text to highlight. Exactly how that text should be highlighted is up to
110-
/// the implemention.
110+
/// the implementation.
111111
pub trait Writer {
112112
/// Called when we start processing a span of text that should be highlighted.
113113
/// The `Class` argument specifies how it should be highlighted.

src/librustdoc/html/render.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2721,7 +2721,7 @@ impl<'a> fmt::Display for Sidebar<'a> {
27212721
let parentlen = cx.current.len() - if it.is_mod() {1} else {0};
27222722

27232723
// the sidebar is designed to display sibling functions, modules and
2724-
// other miscellaneous informations. since there are lots of sibling
2724+
// other miscellaneous information. since there are lots of sibling
27252725
// items (and that causes quadratic growth in large modules),
27262726
// we refactor common parts into a shared JavaScript file per module.
27272727
// still, we don't move everything into JS because we want to preserve

src/libstd/memchr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ mod fallback {
239239
text[..offset].iter().rposition(|elt| *elt == x)
240240
}
241241

242-
// test fallback implementations on all plattforms
242+
// test fallback implementations on all platforms
243243
#[test]
244244
fn matches_one() {
245245
assert_eq!(Some(0), memchr(b'a', b"a"));

0 commit comments

Comments
 (0)