Skip to content

Commit 5fcdc6e

Browse files
cldwalkerstuarthalloway
authored andcommitted
fix typos in docstrings and docs
Signed-off-by: Stuart Halloway <[email protected]>
1 parent 916da19 commit 5fcdc6e

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

doc/clojure/pprint/CommonLispFormat.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This implementation for clojure has the following goals:
1111
* Support the full feature set of the Common Lisp format function (including the X3J13 extensions) with the only exception being concepts that make no sense or are differently interpreted in Clojure.
1212
* Make porting code from Common Lisp easier.
1313
* Provide a more native feeling solution for Clojure programmers than the Java format method and its relatives.
14-
* Be fast. This includes the ability to precompile formats that are going to be used reptitively.
14+
* Be fast. This includes the ability to precompile formats that are going to be used repetitively.
1515
* Include useful error handling and comprehensive documentation.
1616

1717
## Why would I use cl-format?
@@ -180,7 +180,7 @@ There are some more examples in the pretty print examples gallery at
180180
http://github.com/tomfaulhaber/pprint-examples:
181181

182182
* hexdump - a program that uses cl-format to create a standard formatted hexdump of the requested stream.
183-
* multiply - a function to show a formatted multipication table in a very "first-order" way.
183+
* multiply - a function to show a formatted multiplication table in a very "first-order" way.
184184
* props - the show-props example shown above.
185185
* show_doc - some utilities for showing documentation from various name spaces.
186186

doc/clojure/pprint/PrettyPrinting.markdown

+3-3
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

+1-1
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

+1-1
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

+2-2
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@
722722
namespace object or a symbol.
723723
724724
Internally binds *report-counters* to a ref initialized to
725-
*inital-report-counters*. Returns the final, dereferenced state of
725+
*initial-report-counters*. Returns the final, dereferenced state of
726726
*report-counters*."
727727
{:added "1.1"}
728728
[ns]

0 commit comments

Comments
 (0)