From 780bde7ed5e2eee5ff084a5871cd28e71fe04e09 Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Wed, 23 Jun 2021 09:15:31 +0200 Subject: [PATCH] Extend example `custom_datatype.js` demoing it a bit more --- examples/advanced/custom_datatype.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/advanced/custom_datatype.js b/examples/advanced/custom_datatype.js index 6c5330100..ea83d3bea 100644 --- a/examples/advanced/custom_datatype.js +++ b/examples/advanced/custom_datatype.js @@ -51,6 +51,6 @@ console.log(ans1.toString()) // outputs 'CustomValue:5' // you can automatically use the new type in functions which use `add` under the hood: -const ans2 = math.sum(new math.CustomValue(2), new math.CustomValue(3), new math.CustomValue(4)) +const ans2 = math.sum(new math.CustomValue(6), new math.CustomValue(1), new math.CustomValue(2)) console.log(ans2.toString()) // outputs 'CustomValue:9'