Skip to content

Commit 2020814

Browse files
authored
docs: Add missing parenthesis
1 parent 3ed3ba4 commit 2020814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guide/src/macros/impl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ be named `self_`. This can also be used to return a reference to `$this`.
3838

3939
The rest of the options are passed as separate attributes:
4040

41-
- `#[php(defaults(i = 5, b = "hello")]` - Sets the default value for parameter(s).
41+
- `#[php(defaults(i = 5, b = "hello"))]` - Sets the default value for parameter(s).
4242
- `#[php(optional = i)]` - Sets the first optional parameter. Note that this also sets
4343
the remaining parameters as optional, so all optional parameters must be a
4444
variant of `Option<T>`.

0 commit comments

Comments
 (0)