Fix minor things
This commit is contained in:
parent
4965d54fa3
commit
14593de16a
|
@ -6,8 +6,7 @@
|
||||||
racket/match
|
racket/match
|
||||||
scribble/core
|
scribble/core
|
||||||
(for-syntax racket/base
|
(for-syntax racket/base
|
||||||
syntax/parse
|
syntax/parse))
|
||||||
))
|
|
||||||
|
|
||||||
;; scribble-include/no-subsection requires that the module to be included:
|
;; scribble-include/no-subsection requires that the module to be included:
|
||||||
;; - has no title
|
;; - has no title
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
@defform[#:id struct-nested-lens*
|
@defform[#:id struct-nested-lens*
|
||||||
(struct-nested-lens* struct-id both-id ... field-id)]{
|
(struct-nested-lens* struct-id both-id ... field-id)]{
|
||||||
Like @racket[struct-nested-lens], but for the case where each nested
|
Like @racket[struct-nested-lens], but for the case where each nested
|
||||||
field is named the same as it's struct type. For example, given the
|
field is named the same as its struct type. For example, given the
|
||||||
game state defined in the examples for @racket[struct-nested-lens]:
|
game state defined in the examples for @racket[struct-nested-lens]:
|
||||||
@struct-nested*-examples[
|
@struct-nested*-examples[
|
||||||
(struct game (player level) #:transparent)
|
(struct game (player level) #:transparent)
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
the-game
|
the-game
|
||||||
]
|
]
|
||||||
|
|
||||||
Because each field is named the same as it's struct type, we can
|
Because each field is named the same as its struct type, we can
|
||||||
create a lens for viewing the player's x coordinate more succinctly
|
create a lens for viewing the player's x coordinate more succinctly
|
||||||
than with @racket[struct-nested-examples]:
|
than with @racket[struct-nested-examples]:
|
||||||
@struct-nested*-examples[
|
@struct-nested*-examples[
|
||||||
|
|
Loading…
Reference in New Issue
Block a user