mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
docs: fix typos (#24820)
This PR fixes various typos I spotted in the project.
This commit is contained in:
parent
bcdf600ae4
commit
ea121c9a0e
11 changed files with 12 additions and 12 deletions
|
@ -4257,7 +4257,7 @@ fn run_parse(
|
|||
// for old versions of @netlify/edge-bundler with new versions of Deno
|
||||
// where Deno has gotten smarter at resolving config files.
|
||||
//
|
||||
// It's an unfortuante scenario, but Netlify has the version at least
|
||||
// It's an unfortunate scenario, but Netlify has the version at least
|
||||
// pinned to 1.x in old versions so we can remove this in Deno 2.0 in
|
||||
// a few months.
|
||||
fn temp_netlify_deno_1_hack(flags: &mut Flags, script_arg: &str) {
|
||||
|
|
2
cli/cache/cache_db.rs
vendored
2
cli/cache/cache_db.rs
vendored
|
@ -470,7 +470,7 @@ mod tests {
|
|||
};
|
||||
|
||||
static TEST_DB_BLACKHOLE: CacheDBConfiguration = CacheDBConfiguration {
|
||||
table_initializer: "syntax error", // intentially cause an error
|
||||
table_initializer: "syntax error", // intentionally cause an error
|
||||
on_version_change: "",
|
||||
preheat_queries: &[],
|
||||
on_failure: CacheFailure::Blackhole,
|
||||
|
|
|
@ -1532,7 +1532,7 @@ fn diagnose_dependency(
|
|||
// If not @deno-types, diagnose the types if the code errored because
|
||||
// it's likely resolving into the node_modules folder, which might be
|
||||
// erroring correctly due to resolution only being for bundlers. Let this
|
||||
// fail at runtime if necesarry, but don't bother erroring in the editor
|
||||
// fail at runtime if necessary, but don't bother erroring in the editor
|
||||
|| !is_types_deno_types && matches!(dependency.maybe_type, Resolution::Ok(_))
|
||||
&& matches!(dependency.maybe_code, Resolution::Err(_))
|
||||
{
|
||||
|
|
|
@ -47,7 +47,7 @@ pub async fn compile(
|
|||
log::warn!(
|
||||
concat!(
|
||||
"{} Sloppy imports are not supported in deno compile. ",
|
||||
"The compiled executable may encouter runtime errors.",
|
||||
"The compiled executable may encounter runtime errors.",
|
||||
),
|
||||
crate::colors::yellow("Warning"),
|
||||
);
|
||||
|
|
|
@ -488,7 +488,7 @@ fn update_config_file_content(
|
|||
text_changes.push(TextChange {
|
||||
range: insert_position..insert_position,
|
||||
// NOTE(bartlomieju): adding `\n` here to force the formatter to always
|
||||
// produce a config file that is multline, like so:
|
||||
// produce a config file that is multiline, like so:
|
||||
// ```
|
||||
// {
|
||||
// "imports": {
|
||||
|
|
|
@ -866,7 +866,7 @@ impl AnalyzedJsxPragmas {
|
|||
}
|
||||
|
||||
/// Analyze provided source and return information about carious pragmas
|
||||
/// used to configure the JSX tranforms.
|
||||
/// used to configure the JSX transforms.
|
||||
fn analyze_jsx_pragmas(
|
||||
parsed_source: &ParsedSource,
|
||||
) -> Option<AnalyzedJsxPragmas> {
|
||||
|
|
|
@ -490,7 +490,7 @@ delete Object.prototype.__proto__;
|
|||
// anything. We prefer to treat these as modules with no exports.
|
||||
2306,
|
||||
// TS2688: Cannot find type definition file for '...'.
|
||||
// We ignore because type defintion files can end with '.ts'.
|
||||
// We ignore because type definition files can end with '.ts'.
|
||||
2688,
|
||||
// TS2792: Cannot find module. Did you mean to set the 'moduleResolution'
|
||||
// option to 'node', or to add aliases to the 'paths' option?
|
||||
|
@ -1106,7 +1106,7 @@ delete Object.prototype.__proto__;
|
|||
* @param {any} data
|
||||
* @param {string | null} error
|
||||
*/
|
||||
// TODO(bartlomieju): this feels needlessly generic, both type chcking
|
||||
// TODO(bartlomieju): this feels needlessly generic, both type checking
|
||||
// and language server use it with inefficient serialization. Id is not used
|
||||
// anyway...
|
||||
function respond(_id, data = null, error = null) {
|
||||
|
|
2
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
2
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
|
@ -960,7 +960,7 @@ declare namespace Deno {
|
|||
caCerts?: string[];
|
||||
/** A HTTP proxy to use for new connections. */
|
||||
proxy?: Proxy;
|
||||
/** Sets the maximum numer of idle connections per host allowed in the pool. */
|
||||
/** Sets the maximum number of idle connections per host allowed in the pool. */
|
||||
poolMaxIdlePerHost?: number;
|
||||
/** Set an optional timeout for idle sockets being kept-alive.
|
||||
* Set to false to disable the timeout. */
|
||||
|
|
|
@ -234,7 +234,7 @@ export function prepareAsymmetricKey(key) {
|
|||
return { format: "pem", data: getArrayBufferOrView(key, "key") };
|
||||
} else if (isKeyObject(key)) {
|
||||
return {
|
||||
// Assumes that assymetric keys are stored as PEM.
|
||||
// Assumes that asymmetric keys are stored as PEM.
|
||||
format: "pem",
|
||||
data: getKeyMaterial(key),
|
||||
};
|
||||
|
|
|
@ -39,7 +39,7 @@ export class HandleWrap extends AsyncWrap {
|
|||
|
||||
close(cb: () => void = () => {}) {
|
||||
this._onClose();
|
||||
// We need to delay 'cb' at least 2 ticks to avoid "close" event happenning before "error" event in net.Socket
|
||||
// We need to delay 'cb' at least 2 ticks to avoid "close" event happening before "error" event in net.Socket
|
||||
// See https://github.com/denoland/deno/pull/24656 for more information
|
||||
nextTick(nextTick, cb);
|
||||
}
|
||||
|
|
|
@ -532,7 +532,7 @@ function dispatchUnloadEvent() {
|
|||
}
|
||||
|
||||
let hasBootstrapped = false;
|
||||
// Delete the `console` object that V8 automaticaly adds onto the global wrapper
|
||||
// Delete the `console` object that V8 automatically adds onto the global wrapper
|
||||
// object on context creation. We don't want this console object to shadow the
|
||||
// `console` object exposed by the ext/node globalThis proxy.
|
||||
delete globalThis.console;
|
||||
|
|
Loading…
Reference in a new issue