chore: inc -> prefix -> postfix
This commit is contained in:
@@ -105,7 +105,7 @@ function formatError(input: string, output: string, expected: string): string {
|
|||||||
function addLineNumber(start: number, color: string): (s: string) => string {
|
function addLineNumber(start: number, color: string): (s: string) => string {
|
||||||
let counter = start || 0;
|
let counter = start || 0;
|
||||||
return (s: string): string => {
|
return (s: string): string => {
|
||||||
++counter;
|
counter++;
|
||||||
return '\x1b[33m' + (' ' + counter).slice(-2) + color + s;
|
return '\x1b[33m' + (' ' + counter).slice(-2) + color + s;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user