Skip to content

Commit 7ee18e7

Browse files
authored
Merge pull request #229 from jbampton/fix-spelling
misc: fix spelling
2 parents 50c8716 + e86b14b commit 7ee18e7

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

apps/news/news.arc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,7 @@
19201920
(def commentable (i) (in i!type 'story 'comment 'poll))
19211921

19221922
; By default the ability to comment on an item is turned off after
1923-
; 45 days, but this can be overriden with commentable key.
1923+
; 45 days, but this can be overridden with commentable key.
19241924

19251925
(= commentable-threshold* (* 60 24 45))
19261926

brackets.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
; main reader function for []s
1717
; recursive read starts with default readtable's [ parser,
18-
; but nested reads still use the curent readtable:
18+
; but nested reads still use the current readtable:
1919

2020
(define (read-square-brackets ch port src line col pos)
2121
`(%brackets ,@(read/recursive port #\[ #f)))

lang/module-begin.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
(anarki-eval expr)))
4949

5050
(let ()
51-
; We evaluate each top-level exprssion in the file.
51+
; We evaluate each top-level expression in the file.
5252
(eval-here 'body)
5353
...
5454

lib/defpat.arc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
;TODO:
6161
; - 'defpat does not rearrange patterns, so you must manually arrange
6262
; from most specific to most generic patterns for now. Obviously it's
63-
; possible to do this programatically but I will defer it for now.
63+
; possible to do this programmatically but I will defer it for now.
6464
; - code cleanup
6565
;
6666
;

lib/files.arc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
($.file-or-directory-modify-seconds path))
2626

2727
(def file-perms (path)
28-
" Returns a list of the effective file permssions of `path'. "
28+
" Returns a list of the effective file permissions of `path'. "
2929
($.file-or-directory-permissions path))
3030

3131
(def file-size (path)

lib/math.arc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
(init-matrix dims 1))
4747

4848
(mac elt (mat pos)
49-
"access the element of the matix given by co-ords listed in pos"
49+
"access the element of the matrix given by co-ords listed in pos"
5050
(if (cdr pos)
5151
`(elt (,mat ,(last pos)) ,(butlast pos))
5252
`(,mat ,(car pos))))
@@ -170,7 +170,7 @@ using gaussian elimination and returns a list of x's (N.B. not efficient for lar
170170
;calculus fns
171171

172172
(def deriv (f)
173-
"provides differential of a function of a single vairable"
173+
"provides differential of a function of a single variable"
174174
(fn (x)
175175
(let dx (if (is x 0) 1d-9 (abs:* x 1d-9))
176176
(/ (- (f (+ x dx))
@@ -529,7 +529,7 @@ using gaussian elimination and returns a list of x's (N.B. not efficient for lar
529529
;data-fitting
530530

531531
(def least-squares-linear (data)
532-
"data is expected in the form ((x1 y1)(x2 y2)...) returns list of co-efficients for powers of x in acsending order"
532+
"data is expected in the form ((x1 y1)(x2 y2)...) returns list of co-efficients for powers of x in ascending order"
533533
(if (< len.data 2) (err "cannot fit to less than 2 points"))
534534
(withs (xs (map car data)
535535
ys (map cadr data)
@@ -543,7 +543,7 @@ using gaussian elimination and returns a list of x's (N.B. not efficient for lar
543543
(gauss-elim A B)))
544544

545545
(def least-squares-quadratic (data)
546-
"data is expected in the form ((x1 y1)(x2 y2)...) returns list of co-efficients for powers of x in acsending order"
546+
"data is expected in the form ((x1 y1)(x2 y2)...) returns list of co-efficients for powers of x in ascending order"
547547
(if (< len.data 3) (err "cannot fit to less than 3 points"))
548548
(withs (xs (map car data)
549549
ys (map cadr data)
@@ -558,7 +558,7 @@ using gaussian elimination and returns a list of x's (N.B. not efficient for lar
558558
(gauss-elim A B)))
559559

560560
(def least-squares-custom (data . fns)
561-
"data is expected in the form ((x1 y1)(x2 y2)...), fns must each accept 1 argument, returns list of co-efficients for powers of x in acsending order"
561+
"data is expected in the form ((x1 y1)(x2 y2)...), fns must each accept 1 argument, returns list of co-efficients for powers of x in ascending order"
562562
(if (< len.data len.fns) (err "cannot fit to less points than component functions"))
563563
(withs (xs (map car data)
564564
ys (map cadr data)

lib/streams.arc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
(def integers-from (n)
6060
"creates the infinite stream of integers starting from n"
61-
;; might want to change this so it doens't use memoization
61+
;; might want to change this so it doesn't use memoization
6262
(lazy-cons n (integers-from inc.n)))
6363

6464
;; variants of common list operations that return lazy streams

main.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
; library or the GNU Readline library for its implementation.
2727
;
2828
; An undocumented feature of XREPL makes it possible to disable
29-
; Readline support altogether by setting the "TERM" envrionment
29+
; Readline support altogether by setting the "TERM" environment
3030
; variable to "dumb" when running Racket at the command line, like so:
3131
;
3232
; $ TERM=dumb racket

0 commit comments

Comments
 (0)