Fix typos
This commit is contained in:
parent
97987d739c
commit
e2e1b04ea3
@ -386,12 +386,12 @@ This is completely discarded and doesn't expand to anything, not even ``None``.
|
||||
|
||||
.. code-block:: clj
|
||||
|
||||
=> (print (comment <h1>Suprise!</h1>
|
||||
=> (print (comment <h1>Surprise!</h1>
|
||||
... <p>You'd be surprised what's grammatically valid in Hy.</p>
|
||||
... <p>(Keep delimiters in balance, and you're mostly good to go.)</p>)
|
||||
... "Hy")
|
||||
None Hy
|
||||
=> (print #_(comment <h1>Suprise!</h1>
|
||||
=> (print #_(comment <h1>Surprise!</h1>
|
||||
... <p>You'd be surprised what's grammatically valid in Hy.</p>
|
||||
... <p>(Keep delimiters in balance, and you're mostly good to go.)</p>))
|
||||
... "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')])
|
||||
|
@ -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.
|
||||
|
@ -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)))
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user