0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00

Fix typos across the repo (#5295)

Corrections made:
* cli/js/tests/README.md:44:7: corrected "discoveres" to "discovers"
* cli/js/tests/chown_test.ts:111:37: corrected "priviledge" to "privilege"
* cli/worker.rs:231:56: corrected "decendants" to "descendants"
* deno_typescript/lib.rs:136:50: corrected "emmited" to "emitted"
* core/es_isolate.rs:492:67: corrected "registerd" to "registered"
* core/isolate.rs:103:28: corrected "initalize" to "initialize"
* docs/runtime.md:29:14: corrected "ect" to "etc"
* docs/tools/debugger.md:122:16: corrected "implementes" to "implements"
* std/encoding/_yaml/dumper/dumper_state.ts:57:63: corrected "everwhere" to "everywhere"
* std/encoding/csv.ts:37:43: corrected "referal" to "referral"
* std/fmt/sprintf.ts:209:20: corrected "unusuable" to "unusable"
* std/fmt/README.md:21:40: corrected "Alternativly" to "Alternatively"
* std/fmt/README.md:35:68: corrected "seperated" to "separated"
* std/fmt/README.md:179:59: corrected "provded" to "provided"
* std/mime/multipart.ts:581:46: corrected "writen" to "written"
* std/path/_globrex.ts:19:52: corrected "equivelant" to "equivalent"
* std/node/events_test.ts:447:9: corrected "asyncronous" to "asynchronous"
* std/node/events_test.ts:475:9: corrected "asyncronous" to "asynchronous"
* std/node/events_test.ts:500:29: corrected "asyncronous" to "asynchronous"
* std/node/events_test.ts:530:40: corrected "asyncronous" to "asynchronous"
* std/node/events_test.ts:555:9: corrected "asyncronous" to "asynchronous"
* tools/deno_tcp_proxy.ts:1:42: corrected "perfromance" to "performance"
* std/node/module.ts:1003:18: corrected "existend" to "existed"
This commit is contained in:
Dante Calderón 2020-05-13 23:38:42 -05:00 committed by GitHub
parent 45ec10535a
commit c3a205bae8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 23 additions and 23 deletions

View file

@ -41,7 +41,7 @@ ways:
`unit_test_runner.ts` is the main script used to run unit tests. `unit_test_runner.ts` is the main script used to run unit tests.
Runner discoveres required permissions combinations by loading Runner discovers required permissions combinations by loading
`cli/js/tests/unit_tests.ts` and going through all registered instances of `cli/js/tests/unit_tests.ts` and going through all registered instances of
`unitTest`. `unitTest`.

View file

@ -108,7 +108,7 @@ if (Deno.build.os !== "windows") {
async function chownSyncSucceed(): Promise<void> { async function chownSyncSucceed(): Promise<void> {
// TODO: when a file's owner is actually being changed, // TODO: when a file's owner is actually being changed,
// chown only succeeds if run under priviledged user (root) // chown only succeeds if run under priviledged user (root)
// The test script has no such priviledge, so need to find a better way to test this case // The test script has no such privilege, so need to find a better way to test this case
const { uid, gid } = await getUidAndGid(); const { uid, gid } = await getUidAndGid();
const enc = new TextEncoder(); const enc = new TextEncoder();

View file

@ -228,7 +228,7 @@ impl DerefMut for Worker {
/// ///
/// It provides ops available in the `Deno` namespace. /// It provides ops available in the `Deno` namespace.
/// ///
/// All WebWorkers created during program execution are decendants of /// All WebWorkers created during program execution are descendants of
/// this worker. /// this worker.
pub struct MainWorker(Worker); pub struct MainWorker(Worker);

View file

@ -489,7 +489,7 @@ impl EsIsolate {
// 2. Source code resolved result have a different name as requested: // 2. Source code resolved result have a different name as requested:
// 2a. The module with resolved module name has been registered // 2a. The module with resolved module name has been registered
// -> alias // -> alias
// 2b. The module with resolved module name has not yet been registerd // 2b. The module with resolved module name has not yet been registered
// -> register & alias // -> register & alias
// If necessary, register an alias. // If necessary, register an alias.

View file

@ -100,7 +100,7 @@ impl AsMut<[u8]> for ZeroCopyBuf {
} }
} }
/// Stores a script used to initalize a Isolate /// Stores a script used to initialize a Isolate
pub struct Script<'a> { pub struct Script<'a> {
pub source: &'a str, pub source: &'a str,
pub filename: &'a str, pub filename: &'a str,

View file

@ -133,7 +133,7 @@ impl TSIsolate {
/// ///
/// This function writes compiled bundle to disk at provided path. /// This function writes compiled bundle to disk at provided path.
/// ///
/// Source map file and type declaration file are emmited /// Source map file and type declaration file are emitted
/// alongside the bundle. /// alongside the bundle.
/// ///
/// To instantiate bundle use returned `module_name`. /// To instantiate bundle use returned `module_name`.

View file

@ -26,7 +26,7 @@ file.
All APIs that are not web standard are contained in the global `Deno` namespace. All APIs that are not web standard are contained in the global `Deno` namespace.
It has the APIs for reading from files, opening TCP sockets, and executing It has the APIs for reading from files, opening TCP sockets, and executing
subprocesses, ect. subprocesses, etc.
The TypeScript definitions for the Deno namespaces can be found in the The TypeScript definitions for the Deno namespaces can be found in the
[`lib.deno.ns.d.ts`](https://github.com/denoland/deno/blob/master/cli/js/lib.deno.ns.d.ts) [`lib.deno.ns.d.ts`](https://github.com/denoland/deno/blob/master/cli/js/lib.deno.ns.d.ts)

View file

@ -119,7 +119,7 @@ Change `<entry_point>` to `server.ts` and run created configuration:
### Other ### Other
Any client that implementes Devtools protocol should be able to connect to Deno Any client that implements Devtools protocol should be able to connect to Deno
process. process.
### Limitations ### Limitations

View file

@ -54,7 +54,7 @@ export interface DumperStateOptions {
skipInvalid?: boolean; skipInvalid?: boolean;
/** /**
* specifies level of nesting, when to switch from * specifies level of nesting, when to switch from
* block to flow style for collections. -1 means block style everwhere * block to flow style for collections. -1 means block style everywhere
*/ */
flowLevel?: number; flowLevel?: number;
/** Each tag may have own set of styles. - "tag" => "style" map. */ /** Each tag may have own set of styles. - "tag" => "style" map. */

View file

@ -34,7 +34,7 @@ export class ParseError extends Error {
* @property lazyQuotes - Allow unquoted quote in a quoted field or non double * @property lazyQuotes - Allow unquoted quote in a quoted field or non double
* quoted quotes in quoted field Default: 'false' * quoted quotes in quoted field Default: 'false'
* @property fieldsPerRecord - Enabling the check of fields for each row. * @property fieldsPerRecord - Enabling the check of fields for each row.
* If == 0, first row is used as referal for the number of fields. * If == 0, first row is used as referral for the number of fields.
*/ */
export interface ReadOptions { export interface ReadOptions {
comma?: string; comma?: string;

View file

@ -18,7 +18,7 @@ This is very much a work-in-progress. I'm actively soliciting feedback.
- behaviour of `%v` verb. In Golang, this is a shortcut verb to "print the - behaviour of `%v` verb. In Golang, this is a shortcut verb to "print the
default format" of the argument. It is currently implemented to format using default format" of the argument. It is currently implemented to format using
`toString` in the default case and `inpect` if the `%#v` alternative format `toString` in the default case and `inpect` if the `%#v` alternative format
flag is used in the format directive. Alternativly, `%V` could be used to flag is used in the format directive. Alternatively, `%V` could be used to
distinguish the two. distinguish the two.
`inspect` output is not defined, however. This may be problematic if using `inspect` output is not defined, however. This may be problematic if using
@ -32,7 +32,7 @@ This is very much a work-in-progress. I'm actively soliciting feedback.
Consider possible modifier flags, etc. Consider possible modifier flags, etc.
- `<` verb. This is an extension that assumes the argument is an array and will - `<` verb. This is an extension that assumes the argument is an array and will
format each element according to the format (surrounded by [] and seperated by format each element according to the format (surrounded by [] and separated by
comma) (`<` Mnemonic: pull each element out of array) comma) (`<` Mnemonic: pull each element out of array)
- how to deal with more newfangled Javascript features ( generic Iterables, Map - how to deal with more newfangled Javascript features ( generic Iterables, Map
@ -176,7 +176,7 @@ the 'depth' config parameter
## Positional arguments ## Positional arguments
Arguments do not need to be consumed in the order they are provded and may be Arguments do not need to be consumed in the order they are provided and may be
consumed more than once. E.g.: consumed more than once. E.g.:
sprintf("%[2]s %[1]s", "World", "Hello") sprintf("%[2]s %[1]s", "World", "Hello")

View file

@ -206,7 +206,7 @@ class Printf {
default: default:
const val = parseInt(c); const val = parseInt(c);
// most likely parseInt does something stupid that makes // most likely parseInt does something stupid that makes
// it unusuable for this scenario ... // it unusable for this scenario ...
// if we encounter a non (number|*|.) we're done with prec & wid // if we encounter a non (number|*|.) we're done with prec & wid
if (isNaN(val)) { if (isNaN(val)) {
this.i--; this.i--;

View file

@ -578,7 +578,7 @@ export class MultipartWriter {
return this.bufWriter.flush(); return this.bufWriter.flush();
} }
/** Close writer. No additional data can be writen to stream */ /** Close writer. No additional data can be written to stream */
async close(): Promise<void> { async close(): Promise<void> {
if (this.isClosed) { if (this.isClosed) {
throw new Error("multipart: writer is closed"); throw new Error("multipart: writer is closed");

View file

@ -444,7 +444,7 @@ test({
}); });
test({ test({
name: "asyncronous iteration of events are handled as expected", name: "asynchronous iteration of events are handled as expected",
async fn() { async fn() {
const ee = new EventEmitter(); const ee = new EventEmitter();
setTimeout(() => { setTimeout(() => {
@ -472,7 +472,7 @@ test({
}); });
test({ test({
name: "asyncronous error handling of emitted events works as expected", name: "asynchronous error handling of emitted events works as expected",
async fn() { async fn() {
const ee = new EventEmitter(); const ee = new EventEmitter();
const _err = new Error("kaboom"); const _err = new Error("kaboom");
@ -497,7 +497,7 @@ test({
}); });
test({ test({
name: "error thrown during asyncronous processing of events is handled", name: "error thrown during asynchronous processing of events is handled",
async fn() { async fn() {
const ee = new EventEmitter(); const ee = new EventEmitter();
const _err = new Error("kaboom"); const _err = new Error("kaboom");
@ -527,7 +527,7 @@ test({
test({ test({
name: name:
"error thrown in processing loop of asyncronous event prevents processing of additional events", "error thrown in processing loop of asynchronous event prevents processing of additional events",
async fn() { async fn() {
const ee = new EventEmitter(); const ee = new EventEmitter();
const _err = new Error("kaboom"); const _err = new Error("kaboom");
@ -552,7 +552,7 @@ test({
}); });
test({ test({
name: "asyncronous iterator next() works as expected", name: "asynchronous iterator next() works as expected",
async fn() { async fn() {
const ee = new EventEmitter(); const ee = new EventEmitter();
const iterable = on(ee, "foo"); const iterable = on(ee, "foo");

View file

@ -1000,7 +1000,7 @@ function emitCircularRequireWarning(prop: any): void {
} }
// A Proxy that can be used as the prototype of a module.exports object and // A Proxy that can be used as the prototype of a module.exports object and
// warns when non-existend properties are accessed. // warns when non-existent properties are accessed.
const CircularRequirePrototypeWarningProxy = new Proxy( const CircularRequirePrototypeWarningProxy = new Proxy(
{}, {},
{ {

View file

@ -16,7 +16,7 @@ export interface GlobrexOptions {
* @default false */ * @default false */
extended?: boolean; extended?: boolean;
/** Support globstar. /** Support globstar.
* @remarks When globstar is `true`, '/foo/**' is equivelant * @remarks When globstar is `true`, '/foo/**' is equivalent
* to '/foo/*' when globstar is `false`. * to '/foo/*' when globstar is `false`.
* Having globstar set to `true` is the same usage as * Having globstar set to `true` is the same usage as
* using wildcards in bash. * using wildcards in bash.

View file

@ -1,4 +1,4 @@
// Used for benchmarking Deno's tcp proxy perfromance. See tools/http_benchmark.py // Used for benchmarking Deno's tcp proxy performance. See tools/http_benchmark.py
const addr = Deno.args[0] || "127.0.0.1:4500"; const addr = Deno.args[0] || "127.0.0.1:4500";
const originAddr = Deno.args[1] || "127.0.0.1:4501"; const originAddr = Deno.args[1] || "127.0.0.1:4501";