Skip to content

Commit d4b3f26

Browse files
authored
Fix a typo in documentation (#4717)
1 parent 4285374 commit d4b3f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Docs/sphinx_documentation/source/Basics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ Local automatic variables can be defined in the expression. For example,
686686
::
687687

688688
Parser parser("r2=x*x+y*y; r=sqrt(r2); cos(a+r2)*log(r)"
689-
parser.setConstant(a, ...);
689+
parser.setConstant("a", ...);
690690
parser.registerVariables({"x","y"});
691691
auto f = parser.compile<2>(); // 2 because there are two variables.
692692

0 commit comments

Comments
 (0)