chore: fix some typos in comments (#6343)

Signed-off-by: alongdate <alongyear@outlook.com>
This commit is contained in:
alongdate 2024-04-20 01:12:58 +08:00 committed by GitHub
parent 2e0654bd34
commit 2d01f6027f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -534,7 +534,7 @@ const makeContentCollector = (collectStyles, abrowser, apool, className2Author)
// As the concept of parent's doesn't exist when processing each domline...
}
} else {
// Below needs more testin if it's neccesary as _exitList should take care of this.
// Below needs more testin if it's necessary as _exitList should take care of this.
// delete state.start;
// delete state.listNesting;
// _recalcAttribString(state);

View file

@ -167,7 +167,7 @@ const getUrlVars = () => new URL(window.location.href).searchParams;
const sendClientReady = (isReconnect) => {
let padId = document.location.pathname.substring(document.location.pathname.lastIndexOf('/') + 1);
// unescape neccesary due to Safari and Opera interpretation of spaces
// unescape necessary due to Safari and Opera interpretation of spaces
padId = decodeURIComponent(padId);
if (!isReconnect) {
@ -213,7 +213,7 @@ const sendClientReady = (isReconnect) => {
const handshake = async () => {
let receivedClientVars = false;
let padId = document.location.pathname.substring(document.location.pathname.lastIndexOf('/') + 1);
// unescape neccesary due to Safari and Opera interpretation of spaces
// unescape necessary due to Safari and Opera interpretation of spaces
padId = decodeURIComponent(padId);
// padId is used here for sharding / scaling. We prefix the padId with padId: so it's clear

View file

@ -225,7 +225,7 @@ exports.callAll = (hookName, context) => {
// provides settles (resolves or rejects). If a hook function attempts to settle again (e.g., call
// the callback again, or return a value and also call the callback) then the second attempt has no
// effect except either an error message is logged or an Error object is thrown depending on whether
// the the subsequent attempt is a duplicate (same value or error) or different, respectively.
// the subsequent attempt is a duplicate (same value or error) or different, respectively.
//
// See the tests in src/tests/backend/specs/hooks.js for examples of supported and prohibited
// behaviors.