diff options
| author | cui fliter <imcusg@gmail.com> | 2023-11-14 23:06:50 +0800 |
|---|---|---|
| committer | cui fliter <imcusg@gmail.com> | 2023-11-14 23:06:50 +0800 |
| commit | a44a4edc0eb4361f998646891ba3728d3c9d9694 (patch) | |
| tree | f9c1c3f8fa73a6584539f09902a9fc04e3830fff /compiler/rustc_errors/src/markdown | |
| parent | fa14810f21f47aa55ae7b3dd7c6d32c41e2072f8 (diff) | |
| download | rust-a44a4edc0eb4361f998646891ba3728d3c9d9694.tar.gz rust-a44a4edc0eb4361f998646891ba3728d3c9d9694.zip | |
Fix some typos
Signed-off-by: cui fliter <imcusg@gmail.com>
Diffstat (limited to 'compiler/rustc_errors/src/markdown')
| -rw-r--r-- | compiler/rustc_errors/src/markdown/parse.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/markdown/parse.rs b/compiler/rustc_errors/src/markdown/parse.rs index d3a08da6283..67e4963fddf 100644 --- a/compiler/rustc_errors/src/markdown/parse.rs +++ b/compiler/rustc_errors/src/markdown/parse.rs @@ -329,7 +329,7 @@ fn parse_with_end_pat<'a>( end_sep: &[u8], ignore_esc: bool, ) -> Option<(&'a [u8], &'a [u8])> { - // Find positions that start with the end seperator + // Find positions that start with the end separator for idx in (0..buf.len()).filter(|idx| buf[*idx..].starts_with(end_sep)) { if !ignore_esc && idx > 0 && buf[idx - 1] == b'\\' { continue; |
