From cce3edd614be083f134c99360d5894fbc6156349 Mon Sep 17 00:00:00 2001 From: Guillermo Indalecio Date: Tue, 8 Oct 2013 10:31:46 +0200 Subject: [PATCH] Fixed small typo in exception message --- lib/function/trigonometry/sin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/function/trigonometry/sin.js b/lib/function/trigonometry/sin.js index 5219a7387..e14cc8bb6 100644 --- a/lib/function/trigonometry/sin.js +++ b/lib/function/trigonometry/sin.js @@ -40,7 +40,7 @@ module.exports = function (math) { if (isUnit(x)) { if (!x.hasBase(Unit.BASE_UNITS.ANGLE)) { - throw new TypeError ('Unit in function cos is no angle'); + throw new TypeError ('Unit in function sin is no angle'); } return Math.sin(x.value); }