Skip to content

Commit 9038e65

Browse files
committed
fix typo in docstring
1 parent b89b754 commit 9038e65

3 files changed

Lines changed: 15 additions & 12 deletions

File tree

.gitignore

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
target
1+
.classpath
2+
.cpcache/
3+
.idea
24
.lein*
3-
lib
4-
multi-lib
5+
.lsp/sqlite.db
56
.nrepl-port
6-
.idea
7-
.cpcache/
7+
.project
8+
.settings
89
/build.boot
10+
lib
11+
multi-lib
12+
target

src/main/clojure/clojure/core/cache.clj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@
579579
;; Factories
580580

581581
(defn basic-cache-factory
582-
"Returns a pluggable basic cache initialied to `base`"
582+
"Returns a pluggable basic cache initialized to `base`"
583583
[base]
584584
{:pre [(map? base)]}
585585
(BasicCache. base))
@@ -606,7 +606,7 @@
606606
(clojure.core.cache/seed (FIFOCache. {} clojure.lang.PersistentQueue/EMPTY threshold) base))
607607

608608
(defn lru-cache-factory
609-
"Returns an LRU cache with the cache and usage-table initialied to `base` --
609+
"Returns an LRU cache with the cache and usage-table initialized to `base` --
610610
each entry is initialized with the same usage value.
611611
612612
This function takes an optional `:threshold` argument that defines the maximum number
@@ -628,7 +628,7 @@
628628
(clojure.core.cache/seed (TTLCacheQ. {} {} clojure.lang.PersistentQueue/EMPTY 0 ttl) base))
629629

630630
(defn lu-cache-factory
631-
"Returns an LU cache with the cache and usage-table initialied to `base`.
631+
"Returns an LU cache with the cache and usage-table initialized to `base`.
632632
633633
This function takes an optional `:threshold` argument that defines the maximum number
634634
of elements in the cache before the LU semantics apply (default is 32)."
@@ -659,4 +659,3 @@
659659
{:pre [(map? base)]}
660660
(clojure.core.cache/seed (SoftCache. (ConcurrentHashMap.) (ConcurrentHashMap.) (ReferenceQueue.))
661661
base))
662-

src/main/clojure/clojure/core/cache/wrapped.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
(swap! cache-atom c/through-cache item wrap-fn value-fn)))
129129

130130
(defn basic-cache-factory
131-
"Returns a pluggable basic cache initialied to `base`"
131+
"Returns a pluggable basic cache initialized to `base`"
132132
[base]
133133
(atom (c/basic-cache-factory base)))
134134

@@ -151,7 +151,7 @@
151151
(atom (c/fifo-cache-factory base :threshold threshold)))
152152

153153
(defn lru-cache-factory
154-
"Returns an LRU cache with the cache and usage-table initialied to `base` --
154+
"Returns an LRU cache with the cache and usage-table initialized to `base` --
155155
each entry is initialized with the same usage value.
156156
157157
This function takes an optional `:threshold` argument that defines the maximum number
@@ -169,7 +169,7 @@
169169
(atom (c/ttl-cache-factory base :ttl ttl)))
170170

171171
(defn lu-cache-factory
172-
"Returns an LU cache with the cache and usage-table initialied to `base`.
172+
"Returns an LU cache with the cache and usage-table initialized to `base`.
173173
174174
This function takes an optional `:threshold` argument that defines the maximum number
175175
of elements in the cache before the LU semantics apply (default is 32)."

0 commit comments

Comments
 (0)