aboutsummaryrefslogtreecommitdiffstats
path: root/system/doc/tutorial/ei.c
diff options
context:
space:
mode:
Diffstat (limited to 'system/doc/tutorial/ei.c')
-rw-r--r--system/doc/tutorial/ei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/doc/tutorial/ei.c b/system/doc/tutorial/ei.c
index b234a00768..c33e3fb78e 100644
--- a/system/doc/tutorial/ei.c
+++ b/system/doc/tutorial/ei.c
@@ -21,7 +21,7 @@ int main() {
if (strncmp(ERL_ATOM_PTR(fnp), "foo", 3) == 0) {
res = foo(ERL_INT_VALUE(argp));
- } else if (strncmp(ERL_ATOM_PTR(fnp), "bar", 17) == 0) {
+ } else if (strncmp(ERL_ATOM_PTR(fnp), "bar", 3) == 0) {
res = bar(ERL_INT_VALUE(argp));
}