Commits

Steve Losh  committed 2934725

Fix docstring placement.

  • Participants
  • Parent commits 62f2414

Comments (0)

Files changed (2)

File metrics-clojure-core/src/metrics/gauges.clj

                     (proxy [Gauge] []
                       (value [] (f)))))
 
-(defmacro defgauge [title & body]
+(defmacro defgauge
   "Define a new Gauge metric with the given title.
 
    The rest of the arguments may be a body form or function to call to
    retrieve the value of the Gauge."
+  [title & body]
   (cond (and (= 1 (count body)) (and (symbol? (first body))
                                      (fn? (eval (first body)))))
         `(gauge-fn ~(str title) ~(first body))

File metrics-clojure-core/src/metrics/histograms.clj

      ^MetricName (metric-name title)
      (boolean biased))))
 
-(defmacro defhistogram [title & args]
+(defmacro defhistogram
   "Define a Histogram metric with the given title."
+  [title & args]
   `(def ~title
      (histogram ~@(cons (str title) args))))