docs: reflow comments

This commit is contained in:
electria 2026-07-24 14:23:28 -07:00
commit 0dc140909f
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -79,11 +79,12 @@ impl FromStr for Nodes {
} }
/// A function to check if the given `char` should be used by the parser. /// A function to check if the given `char` should be used by the parser.
/// ///
/// We ignore whitespace since it has no semantic significance in typst aside from variables, /// We ignore whitespace since it has no semantic significance in typst
/// (which are not implemented) /// (aside from variables, which are not implemented)
/// and `&` because it is only used for visual alignment. /// and `&` because it is only used for visual alignment.
/// ///
/// Newlines are also ignored because they're likely accidental; like in the case of `echo 1+1 | tylc`. /// Newlines are also ignored because they're likely accidental;
/// like in the case of `echo 1+1 | tylc`.
fn is_not_ignored_char(c: &char) -> bool { fn is_not_ignored_char(c: &char) -> bool {
!matches!(c, ' ' | '&' | '\n') !matches!(c, ' ' | '&' | '\n')
} }