Skip to content

Commit 1f64eb8

Browse files
authored
docs: Add missing parenthesis
* docs: Add missing parenthesis * docs: Update lib docs Signed-off-by: Dmitry Dygalo <[email protected]> --------- Refs: #486 Signed-off-by: Dmitry Dygalo <[email protected]>
1 parent 3ed3ba4 commit 1f64eb8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/macros/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ pub fn php_module(args: TokenStream, input: TokenStream) -> TokenStream {
572572
///
573573
/// The rest of the options are passed as separate attributes:
574574
///
575-
/// - `#[php(defaults(i = 5, b = "hello")]` - Sets the default value for
575+
/// - `#[php(defaults(i = 5, b = "hello"))]` - Sets the default value for
576576
/// parameter(s).
577577
/// - `#[php(optional = i)]` - Sets the first optional parameter. Note that this
578578
/// also sets the remaining parameters as optional, so all optional parameters

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)