Permalink
Browse files

correct strange indentation

  • Loading branch information...
1 parent 75fe895 commit f77a4a344379b20a24c5c539a069d0e3b1ce0707 @josephwilk josephwilk committed Feb 7, 2013
Showing with 22 additions and 22 deletions.
  1. +22 −22 README.md
View
@@ -111,34 +111,34 @@ project.clj
tensor/parse.clj
```clojure
- (ns tensor.parse
- (:use [slingshot.slingshot :only [throw+]]))
+(ns tensor.parse
+ (:use [slingshot.slingshot :only [throw+]]))
- (defn parse-tree [tree hint]
- (if (bad-tree? tree)
- (throw+ {:type ::bad-tree :tree tree :hint hint})
- (parse-good-tree tree hint)))
+(defn parse-tree [tree hint]
+ (if (bad-tree? tree)
+ (throw+ {:type ::bad-tree :tree tree :hint hint})
+ (parse-good-tree tree hint)))
```
math/expression.clj
```clojure
- (ns math.expression
- (:require [tensor.parse]
- [clojure.tools.logging :as log])
- (:use [slingshot.slingshot :only [throw+ try+]]))
-
- (defn read-file [file]
- (try+
- [...]
- (tensor.parse/parse-tree tree)
- [...]
- (catch [:type :tensor.parse/bad-tree] {:keys [tree hint]}
- (log/error "failed to parse tensor" tree "with hint" hint)
- (throw+))
- (catch Object _
- (log/error (:throwable &throw-context) "unexpected error")
- (throw+))))
+(ns math.expression
+ (:require [tensor.parse]
+ [clojure.tools.logging :as log])
+ (:use [slingshot.slingshot :only [throw+ try+]]))
+
+(defn read-file [file]
+ (try+
+ [...]
+ (tensor.parse/parse-tree tree)
+ [...]
+ (catch [:type :tensor.parse/bad-tree] {:keys [tree hint]}
+ (log/error "failed to parse tensor" tree "with hint" hint)
+ (throw+))
+ (catch Object _
+ (log/error (:throwable &throw-context) "unexpected error")
+ (throw+))))
```
Credits

0 comments on commit f77a4a3

Please sign in to comment.