aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api_light/src/formatting.rs
diff options
context:
space:
mode:
authorPascal Hertleif <[email protected]>2019-01-13 18:54:28 +0000
committerPascal Hertleif <[email protected]>2019-01-13 18:54:28 +0000
commitf97a9921dfe9080c6a804a2c8510f4a41c441de5 (patch)
tree22db5bb67c938665fb63b11294022159bf7f1a23 /crates/ra_ide_api_light/src/formatting.rs
parent6fb13cd535f854d9d82ca3a08086a29263db9ccd (diff)
Fix some random typos
Diffstat (limited to 'crates/ra_ide_api_light/src/formatting.rs')
-rw-r--r--crates/ra_ide_api_light/src/formatting.rs2
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.
9pub(crate) fn leading_indent(node: &SyntaxNode) -> Option<&str> { 9pub(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();