Compare commits
1
Commits
57ffa57992
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
192763649b
|
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user