fix typos in docstrings and docs · clojure/clojure@5fcdc6e · GitHub
Skip to content

Commit 5fcdc6e

Browse files
cldwalkerstuarthalloway
authored andcommitted
fix typos in docstrings and docs
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
1 parent 916da19 commit 5fcdc6e

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

doc/clojure/pprint/CommonLispFormat.markdown

Lines changed: 2 additions & 2 deletions

doc/clojure/pprint/PrettyPrinting.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ The pretty printer comes with two pre-defined dispatch tables to cover
9393
the most common situations:
9494

9595
`*`simple-dispatch`*` - supports basic representation of data in various
96-
Clojure structures: seqs, maps, vectors, etc. in a fairly statndard
96+
Clojure structures: seqs, maps, vectors, etc. in a fairly standard
9797
way. When structures need to be broken across lines, following lines
9898
are indented to line up with the first element. `*`simple-dispatch`*` is
9999
the default and is good for showing the output of most operations.
@@ -124,7 +124,7 @@ An example formatted with code dispatch:
124124
user=>
125125

126126
There are three ways to set the current dispatch: set it to a specific
127-
table permanantly with set-pprint-dispatch, bind it with
127+
table permanently with set-pprint-dispatch, bind it with
128128
with-pprint-dispatch (as shown in the example above), or use the
129129
:dispatch keyword argument to write.
130130

@@ -174,7 +174,7 @@ For example:
174174

175175
As with the regular Clojure print function, this variable controls the
176176
number of items that are printed at each layer of structure. When a
177-
layer has too many items, elipses (...) are displayed.
177+
layer has too many items, ellipses (...) are displayed.
178178

179179
For example:
180180

src/clj/clojure/core_deftype.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
are optional. The only methods that can be supplied are those
306306
declared in the protocols/interfaces. Note that method bodies are
307307
not closures, the local environment includes only the named fields,
308-
and those fields can be accessed directy.
308+
and those fields can be accessed directly.
309309
310310
Method definitions take the form:
311311

src/clj/clojure/main.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ by default when a new command-line REPL is started."} repl-requires
224224
- else returns the next object read from the input stream
225225
default: repl-read
226226
227-
- :eval, funtion of one argument, returns the evaluation of its
227+
- :eval, function of one argument, returns the evaluation of its
228228
argument
229229
default: eval
230230

src/clj/clojure/pprint/cl_format.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ string, or one character longer."
11101110
s)))))
11111111

11121112
(defn- capitalize-word-writer
1113-
"Returns a proxy that wraps writer, captializing all words"
1113+
"Returns a proxy that wraps writer, capitalizing all words"
11141114
[^java.io.Writer writer]
11151115
(let [last-was-whitespace? (ref true)]
11161116
(proxy [java.io.Writer] []
@@ -1182,7 +1182,7 @@ string, or one character longer."
11821182

11831183
(defn get-pretty-writer
11841184
"Returns the java.io.Writer passed in wrapped in a pretty writer proxy, unless it's
1185-
already a pretty writer. Generally, it is unneccesary to call this function, since pprint,
1185+
already a pretty writer. Generally, it is unnecessary to call this function, since pprint,
11861186
write, and cl-format all call it if they need to. However if you want the state to be
11871187
preserved across calls, you will want to wrap them with this.
11881188

src/clj/clojure/test.clj

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)