Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jan 11, 2023
1 parent 0b6903f commit 2a630c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/find.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ fn finds_with_closure() -> Result<()> {
g.find(
1,
"first.second/abc",
LambdaRelay::new(|v, head, tail| {
if v == 1 && !tail.is_empty() {
LambdaRelay::new(|v, a, b| {
if v == 1 && !b.is_empty() {
panic!();
}
if v == 2 && head == "second" && tail == "abc" {
if v == 2 && a == "second" && b == "abc" {
Ok("something_else".to_string())
} else {
Ok("".to_string())
Expand Down

0 comments on commit 2a630c7

Please sign in to comment.