Skip to content

Commit 0068933

Browse files
authored
Merge pull request #242 from yadaiio/typos
Fix typos in documentation
2 parents 0dc1473 + b9bc38b commit 0068933

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/api/middleware.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class DemoMiddleware
110110
$app->get('/user', DemoMiddleware::class, UserController::class);
111111
```
112112

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

docs/async/promises.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ you'll end up using promises one way or another no matter what.
189189

190190
The major feature is that this means that anything that takes some time will
191191
no longer block the entire execution.
192-
These non-blocking operations are especially benefitial for anything that incurs
192+
These non-blocking operations are especially beneficial for anything that incurs
193193
some kind of <abbrev title="Input/Output">I/O</abbrev>, such as
194194
[database queries](../integrations/database.md), HTTP API requests,
195195
[filesystem access](../integrations/filesystem.md) and much more.

src/FilesystemHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function __invoke(ServerRequestInterface $request): ResponseInterface
103103
}
104104

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

0 commit comments

Comments
 (0)