Skip to content

Commit

Permalink
Merge pull request #242 from yadaiio/typos
Browse files Browse the repository at this point in the history
Fix typos in documentation
  • Loading branch information
clue committed Dec 13, 2023
2 parents 0dc1473 + b9bc38b commit 0068933
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/api/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class DemoMiddleware
$app->get('/user', DemoMiddleware::class, UserController::class);
```

This highlights how middleware classes provide the exact same functionaly as using inline functions,
This highlights how middleware classes provide the exact same functionality as using inline functions,
yet provide a cleaner and more reusable structure.
Accordingly, all examples below use middleware classes as the recommended style.

Expand Down
2 changes: 1 addition & 1 deletion docs/async/promises.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ you'll end up using promises one way or another no matter what.

The major feature is that this means that anything that takes some time will
no longer block the entire execution.
These non-blocking operations are especially benefitial for anything that incurs
These non-blocking operations are especially beneficial for anything that incurs
some kind of <abbrev title="Input/Output">I/O</abbrev>, such as
[database queries](../integrations/database.md), HTTP API requests,
[filesystem access](../integrations/filesystem.md) and much more.
Expand Down
2 changes: 1 addition & 1 deletion src/FilesystemHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function __invoke(ServerRequestInterface $request): ResponseInterface
}

// Assign MIME type based on file extension (same as nginx/Apache) or fall back to given default otherwise.
// Browers are pretty good at figuring out the correct type if no charset attribute is given.
// Browsers are pretty good at figuring out the correct type if no charset attribute is given.
$ext = \strtolower(\substr($path, \strrpos($path, '.') + 1));
$headers = [
'Content-Type' => $this->mimetypes[$ext] ?? $this->defaultMimetype
Expand Down

0 comments on commit 0068933

Please sign in to comment.