@@ -60,13 +60,13 @@ Each structure definition creates four kinds of things:
6060
6161@itemlist[
6262
63- @item{A constructor, e.g. @racket[foo ].}
63+ @item{A constructor, e.g. @racket[posn ].}
6464
65- @item{A predicate, e.g. @racket[foo ?].}
65+ @item{A predicate, e.g. @racket[posn ?].}
6666
67- @item{A set of accessor functions, e.g. @racket[foo -x] and @racket[foo -y].}
67+ @item{A set of accessor functions, e.g. @racket[posn -x] and @racket[posn -y].}
6868
69- @item{A pattern constructor, e.g. @racket[foo ].}
69+ @item{A pattern constructor, e.g. @racket[posn ].}
7070]
7171
7272The constructor is a function that takes as many arguments as fields
@@ -104,7 +104,7 @@ Here the @tt{Symbol} argument represents the name of the structure
104104type. So for example, to create an instance of the @racket[posn]
105105structure type, you'd call @racket[(make-struct 'posn 1 2 )]. To check
106106if @racket[_x] is an instance of a @racket[posn] structure, you'd call
107- @racket[(struct? 'foo _x)]. To access the first field of an instance
107+ @racket[(struct? 'posn _x)]. To access the first field of an instance
108108of a @racket[posn] structure type @racket[_x], you'd call @racket[(struct-ref
109109'posn 0 _x)].
110110
@@ -158,7 +158,7 @@ and @racket['struct-ref] as keywords. If you write a program that
158158uses these names, they will be treated as variables, not primitives:
159159
160160@ex[
161- (parse-e '(struct? 'foo x))
161+ (parse-e '(struct? 'posn x))
162162]
163163
164164The @racket[parse-struct] function is defined as follows:
0 commit comments