diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-13 18:55:44 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-13 18:55:44 +0000 |
commit | d3dfafd393e1c42494af5a15e319ba884c30f9aa (patch) | |
tree | 22db5bb67c938665fb63b11294022159bf7f1a23 /crates/ra_ide_api_light/src/formatting.rs | |
parent | 6fb13cd535f854d9d82ca3a08086a29263db9ccd (diff) | |
parent | f97a9921dfe9080c6a804a2c8510f4a41c441de5 (diff) |
Merge #530
530: Fix some random typos r=matklad a=killercup
Co-authored-by: Pascal Hertleif <[email protected]>
Diffstat (limited to 'crates/ra_ide_api_light/src/formatting.rs')
-rw-r--r-- | crates/ra_ide_api_light/src/formatting.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api_light/src/formatting.rs b/crates/ra_ide_api_light/src/formatting.rs index 599e3cdcb..ca0fdb928 100644 --- a/crates/ra_ide_api_light/src/formatting.rs +++ b/crates/ra_ide_api_light/src/formatting.rs | |||
@@ -5,7 +5,7 @@ use ra_syntax::{ | |||
5 | algo::generate, | 5 | algo::generate, |
6 | }; | 6 | }; |
7 | 7 | ||
8 | /// If the node is on the begining of the line, calculate indent. | 8 | /// If the node is on the beginning of the line, calculate indent. |
9 | pub(crate) fn leading_indent(node: &SyntaxNode) -> Option<&str> { | 9 | pub(crate) fn leading_indent(node: &SyntaxNode) -> Option<&str> { |
10 | let prev = prev_leaf(node)?; | 10 | let prev = prev_leaf(node)?; |
11 | let ws_text = ast::Whitespace::cast(prev)?.text(); | 11 | let ws_text = ast::Whitespace::cast(prev)?.text(); |