Skip to content

Commit 14021cb

Browse files
committed
rename from Evaluate to Evaluator
1 parent 9682b6b commit 14021cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ pub trait AsAny {
156156
fn as_any(&self) -> &dyn Any;
157157
}
158158

159-
type Evaluate = dyn Fn(&Event, &Vec<Box<dyn Renderable>>) -> Result<bool>;
159+
type Evaluator = dyn Fn(&Event, &Vec<Box<dyn Renderable>>) -> Result<bool>;
160160
type Output<T> = dyn Fn(&Vec<Box<dyn Renderable>>) -> Result<T>;
161161

162162
/// A core data structure to manage the hooks and state.
163163
pub struct Prompt<T> {
164164
renderables: Vec<Box<dyn Renderable>>,
165-
evaluator: Box<Evaluate>,
165+
evaluator: Box<Evaluator>,
166166
output: Box<Output<T>>,
167167
}
168168

0 commit comments

Comments
 (0)