Skip to content

Commit fa091b0

Browse files
committed
Fixes #186.
1 parent bb4faaa commit fa091b0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

www/notes/1/ocaml-to-racket.scrbl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ Racket.
755755
@section{Symbols}
756756

757757
One of the built-in datatypes we will use often in Racket is
758-
that of a @emph{symbol}. A symbol is just an atomic peice of
758+
that of a @emph{symbol}. A symbol is just an atomic piece of
759759
data. A symbol is written using the @racket[quote] notation
760760
@racket[(code:quote symbol-name)], which is abbreviated
761761
@racket['symbol-name]. What's allowable as a symbol name
@@ -965,7 +965,7 @@ representation of itself.
965965
For example, @racket[(+ 1 2)] is an expression. When run, it applies
966966
the @emph{function} bound to the variable @racket[+] to the arguments
967967
@racket[1] and @racket[2] and produces @racket[3]. On the other hand:
968-
@racket['(+ 1 2)] constructs a peice of data, namely, a list of three
968+
@racket['(+ 1 2)] constructs a piece of data, namely, a list of three
969969
elements. The first element is the @emph{symbol} @tt{+}, the second
970970
element is @racket[2], the third element is @racket[3].
971971

@@ -989,7 +989,7 @@ then the @emph{expression} @racket[e] is evaluated and it's
989989
value will be used in place of @tt{(unquote e)}.
990990

991991
This gives us the ability to ``escape'' out of a quoted
992-
peice of data and go back to expression mode.
992+
piece of data and go back to expression mode.
993993

994994
If we think of @racket[quasiquote] like @racket[quote] in
995995
terms of ``pushing in'' then the rules are exactly the same
@@ -1009,7 +1009,7 @@ instead as data.. @emph{unless we encounter a
10091009
things as expressions.
10101010

10111011

1012-
The last remaining peice is @racket[unquote-splicing], which
1012+
The last remaining piece is @racket[unquote-splicing], which
10131013
is abbreviated with ``comma-at'': @racket[,@e] means @tt{
10141014
(unquote-splicing e)}. The @racket[unquote-splicing] form is
10151015
like @racket[unquote] in that if it occurs within a
@@ -1048,7 +1048,7 @@ data. It doesn't contain anything and its only real purpose
10481048
is to be distinguishable from @racket[node] structures. On
10491049
the other hand a @racket[node] structure needs to be
10501050
distinguishable from @racket[leaf]s, but also contain 3
1051-
peices of data within it.
1051+
pieces of data within it.
10521052

10531053
We can formulate definition of binary trees using only
10541054
symbols and lists as:

0 commit comments

Comments
 (0)