diff options
| author | Kian-Meng Ang <kianmeng.ang@gmail.com> | 2023-03-22 16:02:51 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-22 09:02:51 +0100 |
| commit | 25acefeb5b0cf0977ad01fe3128d494d9617a2cf (patch) | |
| tree | 5f629b2aee909022be2be674a60d10fe59bc77c3 /src/eval/str.rs | |
| parent | 26f4321a5e9eb56b905ca9eee9cf52422c7ff859 (diff) | |
Fix typos (#115)
Found via `codespell -S target -L
crate,ist,thi,alle,dedented,ue,tung,nd,ende,overriden,dependant`
Diffstat (limited to 'src/eval/str.rs')
| -rw-r--r-- | src/eval/str.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval/str.rs b/src/eval/str.rs index 0d5d71b9..b1551564 100644 --- a/src/eval/str.rs +++ b/src/eval/str.rs @@ -72,7 +72,7 @@ impl Str { Ok(grapheme.into()) } - /// Extract a contigous substring. + /// Extract a contiguous substring. pub fn slice(&self, start: i64, end: Option<i64>) -> StrResult<Self> { let start = self.locate(start)?; let end = self.locate(end.unwrap_or(self.len()))?.max(start); @@ -251,7 +251,7 @@ impl Str { trimmed.into() } - /// Replace at most `count` occurances of the given pattern with a + /// Replace at most `count` occurrences of the given pattern with a /// replacement string (beginning from the start). pub fn replace(&self, pattern: StrPattern, with: Self, count: Option<usize>) -> Self { match pattern { |
