Skip to content

Commit b364e8e

Browse files
authored
Fix typos (#1540)
Signed-off-by: Andrea Gelmini <[email protected]>
1 parent 1411ea9 commit b364e8e

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ For more information, such as running it from your favourite editor, please see
7979
8080
#### Finding Issues with Clippy
8181
82-
Clippy is a code analyser/linter detecting mistakes, and therfore helps to improve your code.
82+
Clippy is a code analyser/linter detecting mistakes, and therefore helps to improve your code.
8383
Like formatting your code with `rustfmt`, running clippy regularly and before your Pull Request will
8484
help us maintain awesome code.
8585

guide/src/format/theme/editor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Note the new `Undo Changes` button in the editable playgrounds.
3333
## Customizing the Editor
3434

3535
By default, the editor is the [Ace](https://ace.c9.io/) editor, but, if desired,
36-
the functionality may be overriden by providing a different folder:
36+
the functionality may be overridden by providing a different folder:
3737

3838
```toml
3939
[output.html.playground]
@@ -42,5 +42,5 @@ editor = "/path/to/editor"
4242
```
4343

4444
Note that for the editor changes to function correctly, the `book.js` inside of
45-
the `theme` folder will need to be overriden as it has some couplings with the
45+
the `theme` folder will need to be overridden as it has some couplings with the
4646
default Ace editor.

src/book/summary.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ struct SummaryParser<'a> {
173173
/// `Event::End` is encountered which matches the `$delimiter` pattern.
174174
///
175175
/// This is the equivalent of doing
176-
/// `$stream.take_while(|e| e != $delimeter).collect()` but it allows you to
176+
/// `$stream.take_while(|e| e != $delimiter).collect()` but it allows you to
177177
/// use pattern matching and you won't get errors because `take_while()`
178178
/// moves `$stream` out of self.
179179
macro_rules! collect_events {

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ pub struct Search {
656656
pub boost_paragraph: u8,
657657
/// True if the searchword `micro` should match `microwave`. Default: `true`.
658658
pub expand: bool,
659-
/// Documents are split into smaller parts, seperated by headings. This defines, until which
659+
/// Documents are split into smaller parts, separated by headings. This defines, until which
660660
/// level of heading documents should be split. Default: `3`. (`### This is a level 3 heading`)
661661
pub heading_split_level: u8,
662662
/// Copy JavaScript files for the search functionality to the output directory?

src/renderer/html_handlebars/search.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ fn render_item(
141141
body.push_str(&clean_html(&html_block));
142142
}
143143
Event::Start(_) | Event::End(_) | Event::Rule | Event::SoftBreak | Event::HardBreak => {
144-
// Insert spaces where HTML output would usually seperate text
144+
// Insert spaces where HTML output would usually separate text
145145
// to ensure words don't get merged together
146146
if in_heading {
147147
heading.push(' ');

src/utils/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::fs::{self, File};
44
use std::io::Write;
55
use std::path::{Component, Path, PathBuf};
66

7-
/// Naively replaces any path seperator with a forward-slash '/'
7+
/// Naively replaces any path separator with a forward-slash '/'
88
pub fn normalize_path(path: &str) -> String {
99
use std::path::is_separator;
1010
path.chars()

0 commit comments

Comments
 (0)