mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
docs: fix some typos in comments (#23520)
This commit is contained in:
parent
8503311641
commit
ce4a7773cc
4 changed files with 4 additions and 4 deletions
|
@ -3176,7 +3176,7 @@ fn get_parameters_from_parts(parts: &[SymbolDisplayPart]) -> Vec<String> {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if part.text == "..." && paren_count == 1 {
|
} else if part.text == "..." && paren_count == 1 {
|
||||||
// Found rest parmeter. Do not fill in any further arguments.
|
// Found rest parameter. Do not fill in any further arguments.
|
||||||
break;
|
break;
|
||||||
} else if part.text == "{" {
|
} else if part.text == "{" {
|
||||||
brace_count += 1;
|
brace_count += 1;
|
||||||
|
|
|
@ -7,7 +7,7 @@ use socket2::Domain;
|
||||||
use socket2::Protocol;
|
use socket2::Protocol;
|
||||||
use socket2::Type;
|
use socket2::Type;
|
||||||
|
|
||||||
/// Our per-process `Connections`. We can use this to find an existant listener for
|
/// Our per-process `Connections`. We can use this to find an existent listener for
|
||||||
/// a given local address and clone its socket for us to listen on in our thread.
|
/// a given local address and clone its socket for us to listen on in our thread.
|
||||||
static CONNS: std::sync::OnceLock<std::sync::Mutex<Connections>> =
|
static CONNS: std::sync::OnceLock<std::sync::Mutex<Connections>> =
|
||||||
std::sync::OnceLock::new();
|
std::sync::OnceLock::new();
|
||||||
|
|
|
@ -193,7 +193,7 @@ function assertDeviceMatch(
|
||||||
const resourceDevice = assertDevice(resource, prefix, resourceContext);
|
const resourceDevice = assertDevice(resource, prefix, resourceContext);
|
||||||
if (resourceDevice.rid !== self.rid) {
|
if (resourceDevice.rid !== self.rid) {
|
||||||
throw new DOMException(
|
throw new DOMException(
|
||||||
`${prefix}: ${resourceContext} belongs to a diffent device than ${selfContext}.`,
|
`${prefix}: ${resourceContext} belongs to a different device than ${selfContext}.`,
|
||||||
"OperationError",
|
"OperationError",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,7 @@ export async function checkCopyright() {
|
||||||
!fileText.startsWith(C_STYLE_COPYRIGHT_LINE)
|
!fileText.startsWith(C_STYLE_COPYRIGHT_LINE)
|
||||||
) {
|
) {
|
||||||
let trimmedText = fileText;
|
let trimmedText = fileText;
|
||||||
// Attempt to trim accceptable lines
|
// Attempt to trim acceptable lines
|
||||||
while (
|
while (
|
||||||
ACCEPTABLE_LINES.test(trimmedText) &&
|
ACCEPTABLE_LINES.test(trimmedText) &&
|
||||||
!trimmedText.startsWith(C_STYLE_COPYRIGHT_LINE)
|
!trimmedText.startsWith(C_STYLE_COPYRIGHT_LINE)
|
||||||
|
|
Loading…
Reference in a new issue