diff --git a/src/protocols/workers/SharedWorkerAcceptor.ts b/src/protocols/workers/SharedWorkerAcceptor.ts index 87e7bbd..816bc70 100644 --- a/src/protocols/workers/SharedWorkerAcceptor.ts +++ b/src/protocols/workers/SharedWorkerAcceptor.ts @@ -29,7 +29,7 @@ import { IWorkerSystem } from "./internal/IWorkerSystem"; * generic arguments; `Header`, `Provider` and `Remote`. Those generic arguments must * be same with the ones defined in the {@link SharedWorkerServer} class. * - * For reference, the first `Header` type repersents an initial data from the + * For reference, the first `Header` type represents an initial data from the * remote client after the connection. I recommend utilize it as an activation tool * for security enhancement. The second generic argument `Provider` represents a * provider from server to client, and the other `Remote` means a provider from the diff --git a/src/protocols/workers/WorkerConnector.ts b/src/protocols/workers/WorkerConnector.ts index ed83ab5..b4e6120 100644 --- a/src/protocols/workers/WorkerConnector.ts +++ b/src/protocols/workers/WorkerConnector.ts @@ -31,7 +31,7 @@ import { WebWorkerCompiler } from "./internal/WebWorkerCompiler"; * be same with the ones defined in the target {@link WorkerServer} class * (`Provider` and `Remote` must be reversed). * - * For reference, the first `Header` type repersents an initial data from the + * For reference, the first `Header` type represents an initial data from the * remote client after the connection. I recommend utilize it as an activation tool * for security enhancement. The second generic argument `Provider` represents a * provider from client to server, and the other `Remote` means a provider from the @@ -106,7 +106,7 @@ export class WorkerConnector< options: Partial = {}, ): Promise { //---- - // PRELIMINIARIES + // PRELIMINARIES //---- // TEST CONDITION this._Test_connection("compile"); diff --git a/src/protocols/workers/internal/IWorkerSystem.ts b/src/protocols/workers/internal/IWorkerSystem.ts index 1670a20..d5fccdd 100644 --- a/src/protocols/workers/internal/IWorkerSystem.ts +++ b/src/protocols/workers/internal/IWorkerSystem.ts @@ -22,9 +22,9 @@ export interface IWorkerSystem { * * Close connection between the remote worker system. * - * It destroies all RFCs (remote function calls) between this and the remote system + * It destroys all RFCs (remote function calls) between this and the remote system * (through `Driver`) that are not returned (completed) yet. The destruction - * causes all incompleted RFCs to throw exceptions. + * causes all incomplete RFCs to throw exceptions. */ close(): Promise; } diff --git a/test/providers/Calculator.ts b/test/providers/Calculator.ts index 9a0e252..d295565 100644 --- a/test/providers/Calculator.ts +++ b/test/providers/Calculator.ts @@ -38,7 +38,7 @@ export class Scientific implements IScientific { } public sqrt(x: number): number { - if (x < 0) throw new Error("Negative value on sqaure."); + if (x < 0) throw new Error("Negative value on square."); return Math.sqrt(x); } }