diff --git a/docs/expressions/syntax.md b/docs/expressions/syntax.md index 19aa36338..6a8e75db0 100644 --- a/docs/expressions/syntax.md +++ b/docs/expressions/syntax.md @@ -463,7 +463,7 @@ with an entry for every visible statement. ```js // a multi line expression -math.eval('1 * 3 \n 2 * 3 \n 3 * 3'); // ResultSet, [1, 3, 9] +math.eval('1 * 3 \n 2 * 3 \n 3 * 3'); // ResultSet, [3, 6, 9] // semicolon statements are hided from the output math.eval('a=3; b=4; a + b \n a * b'); // ResultSet, [7, 12] @@ -517,4 +517,4 @@ parser.eval('# define some variables'); parser.eval('width = 3'); // 3 parser.eval('height = 4'); // 4 parser.eval('width * height # calculate the area'); // 12 -``` \ No newline at end of file +```