Skip to content

Commit c30593b

Browse files
authored
Merge pull request #4 from jbampton/fix-grammar
docs: fix grammar and spelling
2 parents 819dd76 + d689957 commit c30593b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tut-anarki.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ arc> (average 2 4)
221221

222222
The body of the function consists of one expression, `(/ (+ x y) 2)`.
223223
It's common for functions to consist of one expression; in purely
224-
functional code (code with no side-effects) they always do.
224+
functional code (code with no side effects) they always do.
225225

226226
Notice that `def`, like `=`, doesn't evaluate all its arguments. It
227227
is another of those operators with its own evaluation rule.
@@ -430,7 +430,7 @@ arc> (def mylen (xs)
430430
#<procedure: mylen>
431431
```
432432

433-
If the list is `nil` the function will immediately return 0. Otherwise
433+
If the list is `nil` the function will immediately return 0. Otherwise,
434434
it returns 1 more than the length of the `cdr` of the list.
435435

436436
```
@@ -941,7 +941,7 @@ definition, but with def replaced by mac.
941941

942942
What this macro says is that whenever the expression (foo) occurs
943943
in your code, it shouldn't be evaluated in the normal way like a
944-
function call. Instead it should be replaced by the result of
944+
function call. Instead, it should be replaced by the result of
945945
evaluating the body of the macro definition, (list '+ 1 2).
946946
This is called the "expansion" of the macro call.
947947

@@ -1306,7 +1306,7 @@ first Lisp implementations. This probably prevented people from
13061306
realizing they hadn't originally been needed. But most `cond`s in
13071307
the wild seem to occur in purely functional code, and thus pay the
13081308
cost in parens of implicit `progn` without actually needing it. My
1309-
experience so far suggests it's a net win to offer `progn` *a la carte*
1309+
experience so far suggests it's a net win to offer `progn` *à la carte*
13101310
instead of combining it with the default conditional operator.
13111311
Having to use explicit `do`s may even be an advantage, because it
13121312
calls attention to nonfunctional code.

tut-stable.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ arc> (average 2 4)
220220

221221
The body of the function consists of one expression, `(/ (+ x y) 2)`.
222222
It's common for functions to consist of one expression; in purely
223-
functional code (code with no side-effects) they always do.
223+
functional code (code with no side effects) they always do.
224224

225225
Notice that `def`, like `=`, doesn't evaluate all its arguments. It
226226
is another of those operators with its own evaluation rule.
@@ -429,7 +429,7 @@ arc> (def mylen (xs)
429429
#<procedure: mylen>
430430
```
431431

432-
If the list is `nil` the function will immediately return 0. Otherwise
432+
If the list is `nil` the function will immediately return 0. Otherwise,
433433
it returns 1 more than the length of the `cdr` of the list.
434434

435435
```
@@ -940,7 +940,7 @@ definition, but with def replaced by mac.
940940

941941
What this macro says is that whenever the expression (foo) occurs
942942
in your code, it shouldn't be evaluated in the normal way like a
943-
function call. Instead it should be replaced by the result of
943+
function call. Instead, it should be replaced by the result of
944944
evaluating the body of the macro definition, (list '+ 1 2).
945945
This is called the "expansion" of the macro call.
946946

@@ -1305,7 +1305,7 @@ first Lisp implementations. This probably prevented people from
13051305
realizing they hadn't originally been needed. But most `cond`s in
13061306
the wild seem to occur in purely functional code, and thus pay the
13071307
cost in parens of implicit `progn` without actually needing it. My
1308-
experience so far suggests it's a net win to offer `progn` *a la carte*
1308+
experience so far suggests it's a net win to offer `progn` *à la carte*
13091309
instead of combining it with the default conditional operator.
13101310
Having to use explicit `do`s may even be an advantage, because it
13111311
calls attention to nonfunctional code.

0 commit comments

Comments
 (0)