Skip to content

Commit 44b8908

Browse files
committed
chore: Update docs
1 parent a676026 commit 44b8908

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/macros/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,8 @@ fn php_module_internal(args: TokenStream2, input: TokenStream2) -> TokenStream2
712712
/// - `#[php(optional = i)]` - Sets the first optional parameter. Note that this
713713
/// also sets the remaining parameters as optional, so all optional parameters
714714
/// must be a variant of `Option<T>`.
715-
/// - `#[php(public)]`, `#[php(protected)]` and `#[php(private)]` - Sets the
716-
/// visibility of the method.
715+
/// - `#[php(vis = "public")]`, `#[php(vis = "protected")]` and `#[php(vis =
716+
/// "private")]` - Sets the visibility of the method.
717717
/// - `#[php(name = "method_name")]` - Renames the PHP method to a different
718718
/// identifier, without renaming the Rust method name.
719719
///

guide/src/macros/impl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The rest of the options are passed as separate attributes:
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>`.
45-
- `#[php(public)]`, `#[php(protected)]` and `#[php(private)]` - Sets the visibility of the
45+
- `#[php(vis = "public")]`, `#[php(vis = "protected")]` and `#[php(vis = "private")]` - Sets the visibility of the
4646
method.
4747
- `#[php(name = "method_name")]` - Renames the PHP method to a different identifier,
4848
without renaming the Rust method name.

0 commit comments

Comments
 (0)