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 guide/src/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Our main goal is to **make extension development easier.**
## Versioning

`ext-php-rs` follows semantic versioning, however, no backwards compatibility is
guaranteed while we are at major version `0`, which is for the forseeable
guaranteed while we are at major version `0`, which is for the foreseeable
future. It's recommended to lock the version at the patch level.

## Documentation
Expand Down
6 changes: 3 additions & 3 deletions guide/src/macros/impl.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ as constants to PHP on the class that it is implemented on. This requires the
`#[php_class]` macro to already be used on the underlying struct. Trait
implementations cannot be exported to PHP.

If you do not want a function exported to PHP, you should place it in a seperate
If you do not want a function exported to PHP, you should place it in a separate
`impl` block.

## Methods
Expand Down Expand Up @@ -52,7 +52,7 @@ equivalent function attribute parameters.
By default, if a class does not have a constructor, it is not constructable from
PHP. It can only be returned from a Rust function to PHP.

Constructors are Rust methods whick can take any amount of parameters and
Constructors are Rust methods which can take any amount of parameters and
returns either `Self` or `Result<Self, E>`, where `E: Into<PhpException>`. When
the error variant of `Result` is encountered, it is thrown as an exception and
the class is not constructed.
Expand Down Expand Up @@ -80,7 +80,7 @@ If you want to use a different name for the property, you can pass a `rename`
option to the attribute which will change the property name.

Properties do not necessarily have to have both a getter and a setter, if the
property is immutable the setter can be ommited, and vice versa for getters.
property is immutable the setter can be omitted, and vice versa for getters.

The `#[getter]` and `#[setter]` attributes are mutually exclusive on methods.
Properties cannot have multiple getters or setters, and the property name cannot
Expand Down