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

This commit is contained in:
2026-06-08 20:08:27 +02:00
parent 57ffa57992
commit 192763649b
+2 -2
View File
@@ -51,7 +51,7 @@ pub const Result = struct {
/// function when applying to the heap sort algorithm of the standard library.
///
/// ```zig
/// var results: std.ArrayList(Result) = .empty;
/// var results: std.ArrayList(fuzzig.Result) = .empty;
/// // ..
/// std.sort.heap(fuzzig.Result, results.items, {}, fuzzig.greaterThan);
/// // 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:
///
/// ```zig
/// var results: std.ArrayList(Result) = .empty;
/// var results: std.ArrayList(fuzzig.Result) = .empty;
/// defer {
/// for (results.items) |*result| result.deinit(gpa);
/// results.deinit(gpa);