Skip to content

Commit 765ad71

Browse files
committed
fix typo
1 parent 509daf3 commit 765ad71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Local automatic variables can be defined in the expression. For example,
5656
5757
```c++
5858
Parser parser("r2=x*x+y*y; r=sqrt(r2); cos(a+r2)*log(r)"
59-
parser.setConstant(a, ...);
59+
parser.setConstant("a", ...);
6060
parser.registerVariables({"x","y"});
6161
auto f = parser.compile<2>(); // 2 because there are two variables.
6262
```

0 commit comments

Comments
 (0)