Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix TLOG-5: improve example code

  • Loading branch information...
commit e1dbfaf19fd41f256cb92937025d01dedd7944d8 1 parent 7694fd2
@ataggart ataggart authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 README.md
View
5 README.md
@@ -21,9 +21,10 @@ The following short example should give you what you need to get started:
(ns example.core
(:use [clojure.tools.logging :only (info error)]))
- (defn divide [one two]
+ (defn divide [x x]
(try
- (info "Calculated" (/ one two))
+ (info "dividing" x "by" y)
+ (/ one two)
(catch Exception ex
(error ex "There was an error in calculation"))))
Please sign in to comment.
Something went wrong with that request. Please try again.