Skip to content

Commit 5c77b27

Browse files
committed
chore: fix url in readme to point to the right place
1 parent f4b278b commit 5c77b27

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Fuzzy finder algorithms in Zig based on the [Smith-Waterman algorithm](https://en.wikipedia.org/wiki/Smith%E2%80%93Waterman_algorithm), inspired by [fzf](https://github.com/junegunn/fzf).
44

5-
For Unicode support, use the [unicode branch](https://github.com/fjebaker/unicode/tree/unicode).
5+
For Unicode support, use the [unicode branch](https://github.com/fjebaker/fuzzig/tree/unicode).
66

77
## Example
88

src/main.zig

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,17 @@ pub fn main() !void {
4848
}
4949

5050
pub fn runBmark(finder: *fuzzig.Ascii) void {
51-
const score = finder.score(
52-
"hello world this is a short message about things" ** 100,
53-
"short abut thns",
54-
).?;
51+
// const score = finder.score(
52+
// "hello world this is a short message about things" ** 100,
53+
// "short abut thns",
54+
// ).?;
55+
const haystacks = .{
56+
"print", "println", "prelude", "println!", "prefetch", "prefix", "prefix!", "print!",
57+
};
58+
var score: ?i32 = null;
59+
inline for (haystacks) |hs| {
60+
score = finder.score(hs, "pre");
61+
}
5562
std.mem.doNotOptimizeAway(score);
5663
}
5764

0 commit comments

Comments
 (0)