Skip to content

Commit 12753af

Browse files
PizzasBearvldm
authored andcommitted
Fix spelling mistake "witespace" to "whitespace"
1 parent 4511a66 commit 12753af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/node/raw_text.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ impl RawText {
4747
/// Internally uses `Span::source_text` and `Span::join`, so it can be not
4848
/// available.
4949
///
50-
/// Optionally including witespaces.
50+
/// Optionally including whitespaces.
5151
/// Whitespaces can be recovered only if before and after `RawText` was
5252
/// other valid `Node`.
53-
pub fn to_source_text(&self, with_witespaces: bool) -> Option<String> {
54-
if with_witespaces {
53+
pub fn to_source_text(&self, with_whitespaces: bool) -> Option<String> {
54+
if with_whitespaces {
5555
let (start, end) = self.context_span?;
5656
let full = start.join(end)?;
5757
let full_text = full.source_text()?;

0 commit comments

Comments
 (0)