Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ pub fn php_module(args: TokenStream, input: TokenStream) -> TokenStream {
///
/// The rest of the options are passed as separate attributes:
///
/// - `#[php(defaults(i = 5, b = "hello")]` - Sets the default value for
/// - `#[php(defaults(i = 5, b = "hello"))]` - Sets the default value for
/// parameter(s).
/// - `#[php(optional = i)]` - Sets the first optional parameter. Note that this
/// also sets the remaining parameters as optional, so all optional parameters
Expand Down
2 changes: 1 addition & 1 deletion guide/src/macros/impl.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ be named `self_`. This can also be used to return a reference to `$this`.

The rest of the options are passed as separate attributes:

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