Skip to content

Commit dc44813

Browse files
committed
Custom tags docs typo
1 parent 9c7867c commit dc44813

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/Writerside/topics/phpdoc/custom-tags.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ integer, then a name, then an optional description:
3030
```php
3131
$spec = Spec::sequence(
3232
Spec::rule(IntegerCombinator::NAME, 'amount', 'Amount'),
33-
Spec::rule(NameCombinator::NAME, 'currency', 'currency'),
33+
Spec::rule(NameCombinator::NAME, 'currency', 'Currency'),
3434
Spec::maybe(
3535
Spec::rule(DescriptionCombinator::NAME, 'description'),
3636
),
3737
);
3838
```
3939

4040
Each `Spec::rule()` takes the combinator that reads that part of the line, the
41-
alias its captured value is stored under, and — optionally — the name it renders
42-
as in the grammar above.
41+
alias its captured value is stored under, and — optionally — the name (e.g.
42+
`Amount` or `Currency`) it renders as in the grammar above.
4343

4444
<tip>
4545
The building blocks named here — <code>Integer</code>, <code>Name</code>,

0 commit comments

Comments
 (0)