3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 12:28:44 +00:00

Merge pull request #380 from delcypher/c_api_example_typo

Typo in comment in C api example.
This commit is contained in:
Christoph M. Wintersteiger 2015-12-15 12:03:11 +00:00
commit 2fde24b3ab

View file

@ -2557,7 +2557,7 @@ void reference_counter_example() {
ty = Z3_mk_bool_sort(ctx);
Z3_inc_ref(ctx, Z3_sort_to_ast(ctx, ty)); // Z3_sort_to_ast(ty) is just syntax sugar for ((Z3_ast) ty)
sx = Z3_mk_string_symbol(ctx, "x");
// Z3_symbol is not a Z3_ast. No reference counting is not needed.
// Z3_symbol is not a Z3_ast. No reference counting is needed.
x = Z3_mk_const(ctx, sx, ty);
Z3_inc_ref(ctx, x);
sy = Z3_mk_string_symbol(ctx, "y");