Skip to content

Commit 6a19998

Browse files
authored
style: spelling and grammar fixes (#141)
1 parent 476d3cf commit 6a19998

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

deployment/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
},
8888
"properties": {
8989
"locked": {
90-
"description": "Whether the configuration is not allowed to be overriden or extended.",
90+
"description": "Whether the configuration is not allowed to be overridden or extended.",
9191
"type": "boolean"
9292
},
9393
"lineWidth": {

src/configuration/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ generate_str_to_from![StrongKind, [Asterisks, "asterisks"], [Underscores, "under
6969
pub enum UnorderedListKind {
7070
/// Uses dashes (-) as primary character for lists (default).
7171
///
72-
/// In this case, asterisks are used as alternate list chracters.
72+
/// In this case, asterisks are used as alternate list characters.
7373
Dashes,
7474
/// Uses asterisks (*) as primary character for lists.
7575
///
76-
/// In this case, dashes are used as alternate list chracters.
76+
/// In this case, dashes are used as alternate list characters.
7777
Asterisks,
7878
}
7979

src/format_text.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ enum ParseFileResult<'a> {
8181
}
8282

8383
fn parse_source_file<'a>(file_text: &'a str, config: &Configuration) -> Result<ParseFileResult<'a>> {
84-
// check for the presence of an dprint-ignore-file comment before parsing
84+
// check for the presence of a dprint-ignore-file comment before parsing
8585
if file_has_ignore_file_directive(strip_metadata_header(file_text), &config.ignore_file_directive) {
8686
return Ok(ParseFileResult::IgnoreFile);
8787
}

src/generation/cmark/parsing/parse_image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use super::parse_text_in_parens;
44
use crate::generation::common::*;
55
use pulldown_cmark::LinkType;
66

7-
/// Crudely parses out an image assuming the text is a image.
7+
/// Crudely parses out an image assuming the text is an image.
88
/// This is done because images have their references inlined by cmark.
99
pub fn parse_image(offset: usize, text: &str, link_type: LinkType) -> Result<Node, ParseError> {
1010
let mut char_scanner = CharScanner::new(offset, text);

src/generation/common/ast_nodes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ impl Node {
279279
}
280280
}
281281

282-
pub fn has_preceeding_space(&self, file_text: &str) -> bool {
282+
pub fn has_preceding_space(&self, file_text: &str) -> bool {
283283
let range = self.range();
284284
if range.start == 0 {
285285
false

src/generation/generate.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,15 @@ fn gen_nodes(nodes: &[Node], context: &mut Context) -> PrintItems {
162162
items.push_signal(Signal::NewLine);
163163
} else {
164164
let needs_space = if let Node::Html(_) = last_node {
165-
node.has_preceeding_space(context.file_text)
165+
node.has_preceding_space(context.file_text)
166166
} else if matches!(last_node, Node::Text(_)) || matches!(node, Node::Text(_)) {
167-
node.has_preceeding_space(context.file_text)
167+
node.has_preceding_space(context.file_text)
168168
|| !last_node.ends_with_punctuation(context.file_text)
169169
&& !node.starts_with_punctuation(context.file_text)
170170
} else if let Node::FootnoteReference(_) = node {
171171
false
172172
} else if let Node::Html(_) = node {
173-
node.has_preceeding_space(context.file_text)
173+
node.has_preceding_space(context.file_text)
174174
} else {
175175
true
176176
};

tests/specs/Text/Text_TextWrap_Always.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ testing this out with some text thatt 40)
3434
testing this out with some text
3535
thatt 40)
3636

37-
!! should not wrap a number with a dot on the end to the next line when preceeded by another node !!
37+
!! should not wrap a number with a dot on the end to the next line when preceded by another node !!
3838
testing this out with some text `tht` 40.
3939

4040
[expect]
4141
testing this out with some text
4242
`tht` 40.
4343

44-
!! should not wrap a number with a paren on the end to the next line when preceeded by another node !!
44+
!! should not wrap a number with a paren on the end to the next line when preceded by another node !!
4545
testing this out with some text `tht` 40)
4646

4747
[expect]

0 commit comments

Comments
 (0)