Skip to content

Commit

Permalink
fix typos in docstrings and docs
Browse files Browse the repository at this point in the history
Signed-off-by: Stuart Halloway <[email protected]>
  • Loading branch information
cldwalker authored and stuarthalloway committed Oct 25, 2013
1 parent 916da19 commit 5fcdc6e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions doc/clojure/pprint/CommonLispFormat.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This implementation for clojure has the following goals:
* 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.
* Make porting code from Common Lisp easier.
* Provide a more native feeling solution for Clojure programmers than the Java format method and its relatives.
* Be fast. This includes the ability to precompile formats that are going to be used reptitively.
* Be fast. This includes the ability to precompile formats that are going to be used repetitively.
* Include useful error handling and comprehensive documentation.

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

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

Expand Down
6 changes: 3 additions & 3 deletions doc/clojure/pprint/PrettyPrinting.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ The pretty printer comes with two pre-defined dispatch tables to cover
the most common situations:

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

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

Expand Down Expand Up @@ -174,7 +174,7 @@ For example:

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

For example:

Expand Down
2 changes: 1 addition & 1 deletion src/clj/clojure/core_deftype.clj
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
are optional. The only methods that can be supplied are those
declared in the protocols/interfaces. Note that method bodies are
not closures, the local environment includes only the named fields,
and those fields can be accessed directy.
and those fields can be accessed directly.
Method definitions take the form:
Expand Down
2 changes: 1 addition & 1 deletion src/clj/clojure/main.clj
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ by default when a new command-line REPL is started."} repl-requires
- else returns the next object read from the input stream
default: repl-read
- :eval, funtion of one argument, returns the evaluation of its
- :eval, function of one argument, returns the evaluation of its
argument
default: eval
Expand Down
4 changes: 2 additions & 2 deletions src/clj/clojure/pprint/cl_format.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ string, or one character longer."
s)))))

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

(defn get-pretty-writer
"Returns the java.io.Writer passed in wrapped in a pretty writer proxy, unless it's
already a pretty writer. Generally, it is unneccesary to call this function, since pprint,
already a pretty writer. Generally, it is unnecessary to call this function, since pprint,
write, and cl-format all call it if they need to. However if you want the state to be
preserved across calls, you will want to wrap them with this.
Expand Down
2 changes: 1 addition & 1 deletion src/clj/clojure/test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@
namespace object or a symbol.
Internally binds *report-counters* to a ref initialized to
*inital-report-counters*. Returns the final, dereferenced state of
*initial-report-counters*. Returns the final, dereferenced state of
*report-counters*."
{:added "1.1"}
[ns]
Expand Down

0 comments on commit 5fcdc6e

Please sign in to comment.