Skip to content

Commit

Permalink
Fix code example in readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufonur committed Oct 8, 2021
1 parent 609b264 commit 74cd2f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ composer require spatie/period
You're encouraged to create periods using their static constructor:

```php
$period = Period::make('2021-01-01', '2020-01-31');
$period = Period::make('2021-01-01', '2021-01-31');
```

You can manually construct a period, but you'll need to manually provide its **precision** and **boundaries**. Using `Period::make`, the default precision (`Precision::DAY()`) and default boundaries (`Boundaries::EXCLUDE_NONE()`) are used.
Expand Down

0 comments on commit 74cd2f5

Please sign in to comment.