Skip to content

Commit

Permalink
Fixed indentation in doc example.
Browse files Browse the repository at this point in the history
  • Loading branch information
francesca64 committed Aug 24, 2016
1 parent 8d4c303 commit 9f282c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ impl Hotwatch {
///
/// let mut hotwatch = Hotwatch::new().expect("Hotwatch failed to initialize.");
/// hotwatch.watch("README.md", |e: hotwatch::Event| {
/// if e.changed() {
/// println!("{} changed!", e.path);
/// }
/// if e.changed() {
/// println!("{} changed!", e.path);
/// }
/// }).expect("Failed to watch file!");
/// ```
pub fn watch<F>(&mut self, path: &str, handler: F) -> HotwatchResult<()>
Expand Down

0 comments on commit 9f282c1

Please sign in to comment.