summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2021-02-27 22:30:34 +0100
committerGravatar Vincent Rischmann2021-02-27 22:30:34 +0100
commitc494f2952c87b198551d6d3bc2081bbc216ced7d (patch)
tree9c8fc35d6e2658fa5812e31affaf0ddd1781395e /README.md
parentci: add a lint GitHub step (diff)
downloadzig-sqlite-c494f2952c87b198551d6d3bc2081bbc216ced7d.tar.gz
zig-sqlite-c494f2952c87b198551d6d3bc2081bbc216ced7d.tar.xz
zig-sqlite-c494f2952c87b198551d6d3bc2081bbc216ced7d.zip
simplify iterator usage in code and doc
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/README.md b/README.md
index 1551cc0..841adfe 100644
--- a/README.md
+++ b/README.md
@@ -279,8 +279,7 @@ var iter = try stmt.iterator(usize, .{
279 .age = 20, 279 .age = 20,
280}); 280});
281 281
282while (true) { 282while (try iter.next(.{})) |age| {
283 const age = (try iter.next(.{})) orelse break;
284 std.debug.print("age: {}\n", .{age}); 283 std.debug.print("age: {}\n", .{age});
285} 284}
286``` 285```