Skip to content

Commit d110ec0

Browse files
committed
consistency within comments
1 parent 745286f commit d110ec0

File tree

22 files changed

+54
-54
lines changed

22 files changed

+54
-54
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ More things to remember:
5858
- Keep the source code as runtime agnostic as possible. We target the browser
5959
and Deno. This is necessary because we use `deno test`. If a module is
6060
exclusive to one runtime, add a note above the code:
61-
`// This code is browser/Deno only`.
61+
`// this code is browser/Deno only`.
6262

6363
(The following aren't strict rules. It's perfectly fine to not follow any of
6464
these for any reason e.g. you just want to fix typo.)

build/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This code is Deno only
1+
// this code is Deno only
22

33
import * as ESBuild from "esbuild";
44
import * as Dictionary from "../dictionary/build.ts";

build/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This code is Deno only
1+
// this code is Deno only
22

33
import { denoPlugins } from "@luca/esbuild-deno-loader";
44
import { BuildOptions } from "esbuild";

build/dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This code is Deno only
1+
// this code is Deno only
22

33
import { assert } from "@std/assert/assert";
44
import { exists } from "@std/fs/exists";

dictionary/build.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This code is Deno only
1+
// this code is Deno only
22

33
// deno-lint-ignore-file no-console
44

@@ -19,7 +19,7 @@ export async function buildWithDictionary(
1919
2,
2020
);
2121
const code = `\
22-
// This code is autogenerated
22+
// this code is autogenerated
2323
2424
import { Dictionary } from "./type.ts";
2525
@@ -68,7 +68,7 @@ function displayError(source: string, errors: ReadonlyArray<ArrayResultError>) {
6868
if (error instanceof PositionedError && error.position != null) {
6969
const { position, length } = error.position;
7070
const end = position + length;
71-
// The only instance returning -1 is useful
71+
// the only instance returning -1 is useful
7272
const startLine = source.lastIndexOf("\n", position) + 1;
7373
let currentLine = startLine;
7474
let currentPosition = position;

dictionary/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This code is Deno only
1+
// this code is Deno only
22

33
import { assertMatch } from "@std/assert/match";
44
import { dictionary } from "./dictionary.ts";

dictionary/watch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This code is Deno only
1+
// this code is Deno only
22

33
import { unreachable } from "@std/assert/unreachable";
44
import { debounce } from "@std/async/debounce";

misc/misc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Ensure this module don't have imports and as runtime agnostic as possible,
1+
// ensure this module don't have imports and as runtime agnostic as possible,
22
// make separate module when necessary
33

44
export function nullableAsArray<T>(value?: T): ReadonlyArray<NonNullable<T>> {

src/array_result.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class ArrayResult<T> {
9898
& Readonly<{ [I in keyof T]: ArrayResult<T[I]> }>
9999
& Readonly<{ length: T["length"] }>
100100
): ArrayResult<T> {
101-
// We resorted to using `any` types here, make sure it works properly
101+
// we resorted to using `any` types here, make sure it works properly
102102
return arrayResults.reduce(
103103
(left: ArrayResult<any>, right) => {
104104
if (left.isError() && right.isError()) {

src/dictionary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { dictionary as globalDictionary } from "../dictionary/dictionary.ts";
22
import { Definition, Dictionary } from "../dictionary/type.ts";
33
import { load } from "../telo_misikeke/telo_misikeke.js";
44

5-
// All of these global constants are mutable
5+
// all of these global constants are mutable
66

77
const customDictionary: Dictionary = new Map();
88
export const dictionary: Dictionary = new Map();

0 commit comments

Comments
 (0)