summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTor Arvid Lund <torarvid@gmail.com>2019-11-06 13:42:39 +0100
committerMiran <narimiran@disroot.org>2019-11-06 13:42:39 +0100
commit5ccbf7e3cfb22cccbd1883c3e5cb720189f8bad9 (patch)
tree1fc6fc40634ce5d7eedd0e70a25d02ddb25f7033
parent61889c604a5f3185339b8e6fd84fca7b0a8df1f9 (diff)
downloadNim-5ccbf7e3cfb22cccbd1883c3e5cb720189f8bad9.tar.gz
[backport] doc/tut3.rst: Fix typo in Introduction (#12607) [ci skip]
Derivative of `b*pow(x, 2)` is `2*b*x`, while old version had `2*a*x`
-rw-r--r--doc/tut3.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tut3.rst b/doc/tut3.rst
index c71711ca9..2feae1f7d 100644
--- a/doc/tut3.rst
+++ b/doc/tut3.rst
@@ -28,7 +28,7 @@ Examples of things that can be implemented in macros:
 
 * Symbolic differentiation of an expression.
   ``diff(a*pow(x,3) + b*pow(x,2) + c*x + d, x)`` is converted to
-  ``3*a*pow(x,2) + 2*a*x + c``
+  ``3*a*pow(x,2) + 2*b*x + c``
 
 
 Macro Arguments