Updated README page to reflect latest changes

Signed-off-by: Aravinda Vishwanathapura <mail@aravindavk.in>
This commit is contained in:
Aravinda Vishwanathapura 2020-08-21 12:42:11 +05:30 committed by GitHub
parent 49b988cdb0
commit 3ff858cef9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,8 @@ Register the logwatcher, pass a closure and watch it!
```rust
let mut log_watcher = LogWatcher::register("/var/log/check.log".to_string()).unwrap();
log_watcher.watch(&|line: String| {
log_watcher.watch(&mut move |line: String| {
println!("Line {}", line);
LogWatcherAction::None
});
```