diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-06-13 23:16:40 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-06-14 13:53:02 +0200 |
| commit | c81e2a5f56eb262663f292578c683fba7f18251f (patch) | |
| tree | 6c045a8dcbec5e75e01a15f970ef8cee6ff042d0 /src/parse/resolve.rs | |
| parent | 891af17260a6750a74a102388a05e59cf1ffc3c1 (diff) | |
Many fixes
Diffstat (limited to 'src/parse/resolve.rs')
| -rw-r--r-- | src/parse/resolve.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/resolve.rs b/src/parse/resolve.rs index dd9ed4f4..6fab9f21 100644 --- a/src/parse/resolve.rs +++ b/src/parse/resolve.rs @@ -47,7 +47,7 @@ pub fn resolve_hex(sequence: &str) -> Option<char> { u32::from_str_radix(sequence, 16).ok().and_then(std::char::from_u32) } -/// Resolve the language tag and trims the raw text. +/// Resolve the language tag and trim the raw text. pub fn resolve_raw(column: usize, backticks: usize, text: &str) -> RawNode { if backticks > 1 { let (tag, inner) = split_at_lang_tag(text); @@ -77,7 +77,7 @@ fn split_at_lang_tag(raw: &str) -> (&str, &str) { /// Trim raw text and splits it into lines. /// -/// Returns whether at least one newline was contained in `raw`. +/// Also returns whether at least one newline was contained in `raw`. fn trim_and_split_raw(column: usize, mut raw: &str) -> (String, bool) { // Trims one space at the start. raw = raw.strip_prefix(' ').unwrap_or(raw); |
