Skip to content

Commit be7d89d

Browse files
committed
don't use 's for plurals
1 parent 9ba02df commit be7d89d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Language/grammar_tutorial.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ As you can see above, in TOP, the "<thingy>" token is mentioned. The <thingy> is
7575
7676
=head1 Learning By Example - a REST Contrivance
7777
78-
Let's suppose we'd like to parse a URL into the component parts that make up a RESTful request. Let's decide that we want the URL's to work like this:
78+
Let's suppose we'd like to parse a URL into the component parts that make up a RESTful request. Let's decide that we want the URLs to work like this:
7979
8080
8181
=item1 The first part of the URI we'll call the "subject", like a part, or a product, or a person.
@@ -140,7 +140,7 @@ The REST grammar so far will handle retrieves, deletes and updates ok. However,
140140
# 「product」「create」
141141
=end code
142142
143-
Let's imagine, for the sake of demonstration, that we might want to allow these same URI's to be entered in by a user from the terminal. In that case, they might put spaces between the '/'s, since users are prone to break things. If we wanted to accommodate this possibility, we could replace the '/'s in TOP with another token that allowed for spaces on either side of it.
143+
Let's imagine, for the sake of demonstration, that we might want to allow these same URIs to be entered in by a user from the terminal. In that case, they might put spaces between the '/'s, since users are prone to break things. If we wanted to accommodate this possibility, we could replace the '/'s in TOP with another token that allowed for spaces on either side of it.
144144
145145
=begin code
146146
grammar REST {
@@ -217,7 +217,7 @@ This is what we've come up for processing our RESTful URIs so far:
217217
}
218218
=end code
219219
220-
Let's look at various URI's and how they behave being passed through our grammar.
220+
Let's look at various URIs and how they behave being passed through our grammar.
221221
222222
=begin code :skip-test
223223
my @uris = ['/product/update/7/notify',
@@ -234,7 +234,7 @@ Let's look at various URI's and how they behave being passed through our grammar
234234
# Sub: item Cmd: delete Dat: 4
235235
=end code
236236
237-
So with just this part of a grammar, we're getting almost everything we need. Our URI's get efficiently parsed and we're given a nice little data structure for the variables we need to work with.
237+
So with just this part of a grammar, we're getting almost everything we need. Our URIs get efficiently parsed and we're given a nice little data structure for the variables we need to work with.
238238
239239
But look at that first line returned -- the I<data> token is returning the entire end of the URI as just one string. We need to be able to work with that 7 there. And that 4! Well, the 4 is easy... But the 7 had the extra /notify on the end, to signal the system to notify someone that a product was updated (perhaps).
240240

0 commit comments

Comments
 (0)