Skip to content

Commit f6d92b0

Browse files
authored
Merge pull request #2 from jasalt/patch-2
rename keyowrd -> keyword
2 parents 5780e32 + 8b70886 commit f6d92b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/statement.phel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
(defstruct statement [stmt])
44

5-
(defn- map-key-to-keyowrd [row]
5+
(defn- map-key-to-keyword [row]
66
(let [row (php-array-to-map row)]
77
(reduce (fn [acc key]
88
(put acc (keyword key) (row key)))
@@ -11,7 +11,7 @@
1111
(defn fetch
1212
"Fetches the next row from a result set"
1313
[statement]
14-
(map-key-to-keyowrd
14+
(map-key-to-keyword
1515
(php/->
1616
(statement :stmt)
1717
(fetch (php/:: \PDO FETCH_ASSOC)))))
@@ -26,7 +26,7 @@
2626
(defn fetch-all
2727
"Fetches the remaining rows from a result set"
2828
[statement]
29-
(map map-key-to-keyowrd
29+
(map map-key-to-keyword
3030
(php/->
3131
(statement :stmt)
3232
(fetchAll (php/:: \PDO FETCH_ASSOC)))))

0 commit comments

Comments
 (0)