Skip to content

Commit

Permalink
update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
yceruto committed Apr 18, 2024
1 parent c284379 commit 4f8c982
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Option type

An Option type that represents an optional value.
An Option class that represents an optional value.

> [!NOTE]
> Inspired by [Rust's Option type](https://doc.rust-lang.org/std/option/).
Expand All @@ -19,6 +19,9 @@ composer require yceruto/option-type

## Usage

Class `Option` represents an optional value: every `Option` is either `Some` and
contains a value, or `None`, and does not.

```php
use App\Model\User;
use Std\Type\Option;
Expand Down

0 comments on commit 4f8c982

Please sign in to comment.