Skip to content

Commit

Permalink
fix: more typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Kroisse committed Dec 2, 2024
1 parent 4d9698e commit 241dba9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/protocols/workers/SharedWorkerAcceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/protocols/workers/WorkerConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -106,7 +106,7 @@ export class WorkerConnector<
options: Partial<WorkerConnector.IConnectOptions> = {},
): Promise<void> {
//----
// PRELIMINIARIES
// PRELIMINARIES
//----
// TEST CONDITION
this._Test_connection("compile");
Expand Down
4 changes: 2 additions & 2 deletions src/protocols/workers/internal/IWorkerSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Controller>`) that are not returned (completed) yet. The destruction
* causes all incompleted RFCs to throw exceptions.
* causes all incomplete RFCs to throw exceptions.
*/
close(): Promise<void>;
}
2 changes: 1 addition & 1 deletion test/providers/Calculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 241dba9

Please sign in to comment.