Skip to content

Commit b5e98f4

Browse files
authored
Merge pull request #1 from michaelbiberich/master
fix: typos in README.md
2 parents 7965ed1 + 9bdaad8 commit b5e98f4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ By default, this middleware removes the trailing slash of the uri path. Set `tru
3939

4040
```php
4141
//Removes the slash, so /post/23/ is converted to /post/23
42-
$slash = new Middlewares\TrailinSlash();
42+
$slash = new Middlewares\TrailingSlash();
4343

4444
//Force the slash, so /post/23 is converted to /post/23/
45-
$slash = new Middlewares\TrailinSlash(true);
45+
$slash = new Middlewares\TrailingSlash(true);
4646
```
4747

4848
Of course, if the path contains an extension, the slash is **NOT** added. For example, `images/image.png` remains the same, instead be converted to `images/image.png/`.
@@ -55,13 +55,13 @@ If the path must be converted, this option returns a `301` response redirecting
5555
$responseFactory = new MyOwnResponseFactory();
5656

5757
//Simply removes the slash
58-
$slash = new Middlewares\TrailinSlash();
58+
$slash = new Middlewares\TrailingSlash();
5959

6060
//Returns a redirect response to the new path
61-
$slash = (new Middlewares\TrailinSlash())->redirect();
61+
$slash = (new Middlewares\TrailingSlash())->redirect();
6262

6363
//Returns a redirect response to the new path using a specific response factory
64-
$slash = (new Middlewares\TrailinSlash())->redirect($responseFactory);
64+
$slash = (new Middlewares\TrailingSlash())->redirect($responseFactory);
6565
```
6666

6767
---

0 commit comments

Comments
 (0)