Fix some random typos

This commit is contained in:
Pascal Hertleif 2019-01-13 19:54:28 +01:00
parent 6fb13cd535
commit f97a9921df
3 changed files with 10 additions and 10 deletions

View file

@ -5,7 +5,7 @@ use ra_syntax::{
algo::generate,
};
/// If the node is on the begining of the line, calculate indent.
/// If the node is on the beginning of the line, calculate indent.
pub(crate) fn leading_indent(node: &SyntaxNode) -> Option<&str> {
let prev = prev_leaf(node)?;
let ws_text = ast::Whitespace::cast(prev)?.text();