Skip to content

Commit

Permalink
Fix spelling mistake "witespace" to "whitespace"
Browse files Browse the repository at this point in the history
  • Loading branch information
PizzasBear authored and vldm committed Oct 20, 2023
1 parent 4511a66 commit 12753af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node/raw_text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ impl RawText {
/// Internally uses `Span::source_text` and `Span::join`, so it can be not
/// available.
///
/// Optionally including witespaces.
/// Optionally including whitespaces.
/// Whitespaces can be recovered only if before and after `RawText` was
/// other valid `Node`.
pub fn to_source_text(&self, with_witespaces: bool) -> Option<String> {
if with_witespaces {
pub fn to_source_text(&self, with_whitespaces: bool) -> Option<String> {
if with_whitespaces {
let (start, end) = self.context_span?;
let full = start.join(end)?;
let full_text = full.source_text()?;
Expand Down

0 comments on commit 12753af

Please sign in to comment.