From 971d44db668749f06ed5a7a3fa37c69c044a8530 Mon Sep 17 00:00:00 2001 From: Ken Huang Date: Mon, 23 Sep 2024 23:36:58 +0800 Subject: [PATCH] Update README.md for code format --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0c257ea..5ee8040 100644 --- a/README.md +++ b/README.md @@ -39,12 +39,13 @@ You call `start-watch` with a collection of specifications. A specification is `start-watch` returns a function that can be called to stop the watch. For example: -(let [stop-watch (start-watch [{ - :path "/some/valid/path" - :event-types [:create :modify :delete] - :callback (fn [event filename] (println event filename))}])] ; start the watch +```clojure +(let [stop-watch (start-watch [{:path "/some/valid/path" + :event-types [:create :modify :delete] + :callback (fn [event filename] (println event filename))}])] ; start the watch (Thread/sleep 20000) ; manipulate files on the path (stop-watch)) ; stop the watch +``` ## License