Skip to content

Commit d474f4f

Browse files
author
Soc Sieng
committed
Fix typos
1 parent 2f158d4 commit d474f4f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/render/reflection-formatter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ export default class ReflectionFormatter {
2727
public static sortOption: ReflectionSortFlags = ReflectionSortFlags.none;
2828
public static indentString: string = ' ';
2929

30-
public render(reflection?: Reflection, terminatorCharater?: string): string {
30+
public render(reflection?: Reflection, terminatorCharacter?: string): string {
3131
if (reflection) {
3232
const renderer = renderers[reflection.kind];
3333

3434
if (renderer) {
35-
return renderer.render(reflection, terminatorCharater);
35+
return renderer.render(reflection, terminatorCharacter);
3636
}
3737

38-
throw new Error(`Unrecognised reflection for kind ${reflection.kindString} ${reflection.name}`);
38+
throw new Error(`Unrecognized reflection for kind ${reflection.kindString} ${reflection.name}`);
3939
}
4040

4141
return '';

src/render/type-formatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,6 @@ export default class TypeFormatter {
117117
return other.name;
118118
}
119119

120-
throw(`Unrecognised type: ${type.type}`);
120+
throw(`Unrecognized type: ${type.type}`);
121121
}
122122
}

0 commit comments

Comments
 (0)