From 29cddff6c8658302003aa4388f2e9a1304e26ece Mon Sep 17 00:00:00 2001 From: Gabriel Horner Date: Mon, 1 Jul 2013 12:38:37 -0400 Subject: [PATCH] fix typos in docstrings and docs --- doc/clojure/pprint/CommonLispFormat.markdown | 4 ++-- doc/clojure/pprint/PrettyPrinting.markdown | 6 +++--- src/clj/clojure/core_deftype.clj | 2 +- src/clj/clojure/main.clj | 2 +- src/clj/clojure/pprint/cl_format.clj | 4 ++-- src/clj/clojure/test.clj | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/clojure/pprint/CommonLispFormat.markdown b/doc/clojure/pprint/CommonLispFormat.markdown index 4bb38ac..c6d7eb4 100644 --- a/doc/clojure/pprint/CommonLispFormat.markdown +++ b/doc/clojure/pprint/CommonLispFormat.markdown @@ -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? @@ -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. diff --git a/doc/clojure/pprint/PrettyPrinting.markdown b/doc/clojure/pprint/PrettyPrinting.markdown index db7b26b..60a15a1 100644 --- a/doc/clojure/pprint/PrettyPrinting.markdown +++ b/doc/clojure/pprint/PrettyPrinting.markdown @@ -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. @@ -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. @@ -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: diff --git a/src/clj/clojure/core_deftype.clj b/src/clj/clojure/core_deftype.clj index 0787445..c5dff14 100644 --- a/src/clj/clojure/core_deftype.clj +++ b/src/clj/clojure/core_deftype.clj @@ -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: diff --git a/src/clj/clojure/main.clj b/src/clj/clojure/main.clj index ad3e9da..109c48c 100644 --- a/src/clj/clojure/main.clj +++ b/src/clj/clojure/main.clj @@ -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 diff --git a/src/clj/clojure/pprint/cl_format.clj b/src/clj/clojure/pprint/cl_format.clj index 246b65d..1943c39 100644 --- a/src/clj/clojure/pprint/cl_format.clj +++ b/src/clj/clojure/pprint/cl_format.clj @@ -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] [] @@ -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. diff --git a/src/clj/clojure/test.clj b/src/clj/clojure/test.clj index a393b4f..e2a2e6a 100644 --- a/src/clj/clojure/test.clj +++ b/src/clj/clojure/test.clj @@ -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] -- 1.7.10.4