Skip to content

Commit 72f39df

Browse files
Merge pull request #148 from denzyldick/master
Fixed some typos
2 parents c0a76e7 + 1e4044b commit 72f39df

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

guide/src/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Our main goal is to **make extension development easier.**
2929
## Versioning
3030

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

3535
## Documentation

guide/src/macros/impl.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ as constants to PHP on the class that it is implemented on. This requires the
55
`#[php_class]` macro to already be used on the underlying struct. Trait
66
implementations cannot be exported to PHP.
77

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

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

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

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

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

0 commit comments

Comments
 (0)