Skip to content

Commit 38a1b69

Browse files
hishopeorium
authored andcommitted
chore: fix some typos
Signed-off-by: hishope <[email protected]>
1 parent 9a62d7b commit 38a1b69

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

benches/data/cloudflare.com.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2144,7 +2144,7 @@ <h1 class="marketing-form__h2">DDoS Protection Hotline</h1>
21442144
<div style="display: none;" id='under-attack-slidesContainerTemplates'>
21452145
<span id="under-attack-slidesContainerTemplates--error">
21462146
<div class="marketing-form__messages">
2147-
<p class="general-error">A server error occured.</p>
2147+
<p class="general-error">A server error occurred.</p>
21482148
<p class="general-error">Please refresh and try again.</p>
21492149
</div>
21502150
</span>
@@ -2577,7 +2577,7 @@ <h3 class='homepage-video__trusted-by__header'>
25772577
<div style='display: none;' id='slidesContainerTemplates'>
25782578
<span id='slidesContainerTemplates--error'>
25792579
<div class='marketing-form__messages'>
2580-
<p class='general-error'>A server error occured.</p>
2580+
<p class='general-error'>A server error occurred.</p>
25812581
<p class='general-error'>Please refresh and try again.</p>
25822582
</div>
25832583
</span>

benches/data/html-parsing-spec.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ <h4 id=parse-errors><span class=secno>12.2.2</span> <dfn>Parse errors</dfn><a hr
356356
<tr><td><dfn id=parse-error-incorrectly-opened-comment>incorrectly-opened-comment</dfn>
357357
<td>
358358
<p>This error occurs if the parser encounters the "<code>&lt;!</code>" <a id=parse-errors:code-point-9 href=https://infra.spec.whatwg.org/#code-point data-x-internal=code-point>code
359-
point</a> sequence that is not immidiately followed by two U+002D (-) code points and that
359+
point</a> sequence that is not immediately followed by two U+002D (-) code points and that
360360
is not the start of a <a href=syntax.html#syntax-doctype id=parse-errors:syntax-doctype-4>DOCTYPE</a> or a <a href=syntax.html#syntax-cdata id=parse-errors:syntax-cdata-3>CDATA section</a>. All content that follows the "<code>&lt;!</code>" code point sequence up to a U+003E (>) code point (if present) or to
361361
the end of the <a href=#input-stream id=parse-errors:input-stream-7>input stream</a> is treated as a comment.</p>
362362

src/html/local_name.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl LocalNameHash {
5757
b'a'..=b'z' | b'A'..=b'Z' => Some((h << 5) | ((u64::from(ch) & 0x1F) + 5)),
5858

5959
// NOTE: apply 0x0F mask on ASCII digit to convert it to number
60-
// from 1 to 6. Then substract 1 to make it zero-based.
60+
// from 1 to 6. Then subtract 1 to make it zero-based.
6161
// Afterwards, put result as lower bits of the hash.
6262
b'1'..=b'6' => Some((h << 5) | ((u64::from(ch) & 0x0F) - 1)),
6363

src/memory/arena.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl Arena {
2929
// give guarantees about exact capacity value :).
3030
self.limiter.borrow_mut().increase_usage(additional)?;
3131

32-
// NOTE: with wicely choosen preallocated size this branch should be
32+
// NOTE: with wicely chosen preallocated size this branch should be
3333
// executed quite rarely. We can't afford to use double capacity
3434
// strategy used by default (see: https://github.com/rust-lang/rust/blob/bdfd698f37184da42254a03ed466ab1f90e6fb6c/src/liballoc/raw_vec.rs#L424)
3535
// as we'll run out of the space allowance quite quickly.

tests/harness/input.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl Input {
4747

4848
// NOTE: Some encodings deviate from ASCII, e.g. in ShiftJIS yen sign (U+00A5) is
4949
// mapped to 0x5C which makes conversion from UTF8 to it non-roundtrippable despite the
50-
// abscence of HTML entities replacements inserted by the encoder.
50+
// absence of HTML entities replacements inserted by the encoder.
5151
if self.input != encoding.decode_without_bom_handling(&bytes).0 {
5252
return Err("ASCII characters deviation".into());
5353
}

0 commit comments

Comments
 (0)