We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4511a66 commit 12753afCopy full SHA for 12753af
src/node/raw_text.rs
@@ -47,11 +47,11 @@ impl RawText {
47
/// Internally uses `Span::source_text` and `Span::join`, so it can be not
48
/// available.
49
///
50
- /// Optionally including witespaces.
+ /// Optionally including whitespaces.
51
/// Whitespaces can be recovered only if before and after `RawText` was
52
/// other valid `Node`.
53
- pub fn to_source_text(&self, with_witespaces: bool) -> Option<String> {
54
- if with_witespaces {
+ pub fn to_source_text(&self, with_whitespaces: bool) -> Option<String> {
+ if with_whitespaces {
55
let (start, end) = self.context_span?;
56
let full = start.join(end)?;
57
let full_text = full.source_text()?;
0 commit comments