Skip to content

Commit d43f9bc

Browse files
Merge pull request #811 from shimos/fix-typos-labs-input2
Fix typos in labs/input2.html
2 parents c98592b + 0074182 commit d43f9bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/labs/input2.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ <h2>Background</h2>
4343

4444
<p>
4545
The code below sets up handlers for a <tt>get</tt> request on path
46-
<tt>/invoices</tt>.
46+
<tt>/parts</tt>.
4747
This code could be triggered, for example, by requesting
48-
<tt>http://localhost:3000/part?id=AX-794-7</tt>
48+
<tt>http://localhost:3000/parts?id=AX-794-7</tt>
4949
(if it was running at <tt>localhost</tt> and responding to port 3000).
5050
If there are no validation errors, the code is supposed to show the part id.
5151
If there is a validation error, it responds with HTTP
@@ -144,7 +144,7 @@ <h2>Interactive Lab (<span id="grade"></span>)</h2>
144144
app.get('/parts',
145145
<textarea id="attempt0" rows="2" cols="64" spellcheck="false">
146146
,</textarea>
147-
(req, res) =&gt; { // Execute this code if /invoices seen
147+
(req, res) =&gt; { // Execute this code if /parts seen
148148
const result = validationResult(req); // Retrieve errors
149149
if (result.isEmpty()) { // No errors
150150
const data = matchedData(req); // Retrieve matching data

0 commit comments

Comments
 (0)