diff --git a/docs/language/api.rst b/docs/language/api.rst index 8f9b398..71e03dc 100644 --- a/docs/language/api.rst +++ b/docs/language/api.rst @@ -386,12 +386,12 @@ This is completely discarded and doesn't expand to anything, not even ``None``. .. code-block:: clj - => (print (comment

Suprise!

+ => (print (comment

Surprise!

...

You'd be surprised what's grammatically valid in Hy.

...

(Keep delimiters in balance, and you're mostly good to go.)

) ... "Hy") None Hy - => (print #_(comment

Suprise!

+ => (print #_(comment

Surprise!

...

You'd be surprised what's grammatically valid in Hy.

...

(Keep delimiters in balance, and you're mostly good to go.)

)) ... "Hy") @@ -1446,7 +1446,7 @@ alternatively be written using the apostrophe (``'``) symbol. .. code-block:: clj => (setv x '(print "Hello World")) - => x ; varible x is set to unevaluated expression + => x ; variable x is set to unevaluated expression HyExpression([ HySymbol('print'), HyString('Hello World')]) diff --git a/hy/contrib/walk.hy b/hy/contrib/walk.hy index 45d991f..d47da62 100644 --- a/hy/contrib/walk.hy +++ b/hy/contrib/walk.hy @@ -296,7 +296,7 @@ The bindings pairs the target symbol and the expansion form for that symbol. sets up lexical bindings in its body Bindings are processed sequentially, -so you can use the result of a earlier binding in a later one. +so you can use the result of an earlier binding in a later one. Basic assignments (e.g. setv, +=) will update the let binding, if they use the name of a let binding. diff --git a/hy/core/language.hy b/hy/core/language.hy index a677ec0..b202bc2 100644 --- a/hy/core/language.hy +++ b/hy/core/language.hy @@ -397,7 +397,7 @@ with overlap." (first (filter None (map pred coll)))) (defn string [x] - "Cast `x` as the current python verion's string implementation." + "Cast `x` as the current python version's string implementation." (if-python2 (unicode x) (str x))) diff --git a/hy/core/macros.hy b/hy/core/macros.hy index 987e92e..208fa22 100644 --- a/hy/core/macros.hy +++ b/hy/core/macros.hy @@ -213,7 +213,7 @@ the second form, the second result is inserted into the third form, and so on." (defmacro defmacro! [name args &rest body] "Like `defmacro/g!`, with automatic once-only evaluation for 'o!' params. -Such 'o!' params are availible within `body` as the equivalent 'g!' symbol." +Such 'o!' params are available within `body` as the equivalent 'g!' symbol." (setv os (list-comp s [s args] (.startswith s "o!")) gs (list-comp (HySymbol (+ "g!" (cut s 2))) [s os])) `(defmacro/g! ~name ~args