Merge branch 'master' of https://github.com/noprompt/frak
[frak.git] / README.md
index d695a648780d2744d93fb6e2119859fd34627dbf..e232f3810066acf8e798c1010255c5f6fc1060a8 100644 (file)
--- a/README.md
+++ b/README.md
@@ -97,7 +97,8 @@ You can view the full expression
   [strs]
   (->> strs
        (clojure.string/join "|")
-       (format "(?:%s)")))
+       (format "(?:%s)")
+       re-pattern))
 
 ;; Shuffle 10000 words and build a naive and frak pattern from them.
 (def ws (shuffle (take 10000 words)))
@@ -117,7 +118,6 @@ You can view the full expression
 ;; Naive pattern 
 
 (bench (doseq [w ws'] (re-matches n-pat w)))
-
 ;;             Execution time mean : 1.499489 sec
 ;;    Execution time std-deviation : 181.365166 ms
 ;;   Execution time lower quantile : 1.337817 sec ( 2.5%)