Compare commits

...
1 Commits
Author SHA1 Message Date
yves-biener 192763649b doc: add missing library name for valid zig code in the examples
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 12m8s
2026-06-08 20:08:27 +02:00
+2 -2
View File
@@ -51,7 +51,7 @@ pub const Result = struct {
/// function when applying to the heap sort algorithm of the standard library. /// function when applying to the heap sort algorithm of the standard library.
/// ///
/// ```zig /// ```zig
/// var results: std.ArrayList(Result) = .empty; /// var results: std.ArrayList(fuzzig.Result) = .empty;
/// // .. /// // ..
/// std.sort.heap(fuzzig.Result, results.items, {}, fuzzig.greaterThan); /// std.sort.heap(fuzzig.Result, results.items, {}, fuzzig.greaterThan);
/// // act on sorted scores: /// // act on sorted scores:
@@ -72,7 +72,7 @@ pub fn greaterThan(_: void, a: Result, b: Result) bool {
/// Given a list of file names, you can match a given string as follows: /// Given a list of file names, you can match a given string as follows:
/// ///
/// ```zig /// ```zig
/// var results: std.ArrayList(Result) = .empty; /// var results: std.ArrayList(fuzzig.Result) = .empty;
/// defer { /// defer {
/// for (results.items) |*result| result.deinit(gpa); /// for (results.items) |*result| result.deinit(gpa);
/// results.deinit(gpa); /// results.deinit(gpa);