Commit 08e47c49 authored by David Anderson's avatar David Anderson
Browse files

Error message names correct method

parent 88911b25
......@@ -11,7 +11,7 @@ export class MinMax {
compare( x: number ) {
const me = this;
if ( isNaN(x) ) {
throw 'MinMax.apply expects a number but NaN was given ';
throw 'MinMax.compare expects a number but NaN was given ';
}
me.min = Math.min( x, me.min );
me.max = Math.max( x, me.max );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment