summaryrefslogtreecommitdiffhomepage
path: root/examples/regex1.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/regex1.c')
-rw-r--r--examples/regex1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/regex1.c b/examples/regex1.c
index 5981e878..c8b3a4f5 100644
--- a/examples/regex1.c
+++ b/examples/regex1.c
@@ -19,7 +19,7 @@ int main(int argc, char* argv[])
cstr_getline(&input, stdin);
// Exit when the user inputs q
- if (cstr_equals(input, "q"))
+ if (cstr_equals(&input, "q"))
break;
if (cregex_is_match(cstr_str(&input), &float_expr))