Skip to content

Commit c201994

Browse files
authored
Merge pull request #112 from yadaiio/typos
Fix typos in documentation
2 parents c54e663 + 742389c commit c201994

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176

177177
```php
178178
$promise = $proxy->connect('imap.example.com:143');
179-
$promise->then(null, function (Exeption $e) {
179+
$promise->then(null, function (Exception $e) {
180180
if ($e->getCode() === SOCKET_EACCES) {
181181
echo 'Failed to authenticate with proxy!';
182182
}
@@ -250,7 +250,7 @@
250250

251251
## 0.7.0 (2017-04-14)
252252

253-
* Feature / BC break: Replace depreacted SocketClient with Socket v0.7 and
253+
* Feature / BC break: Replace deprecated SocketClient with Socket v0.7 and
254254
use `connect($uri)` instead of `create($host, $port)`
255255
(#51 by @clue)
256256

@@ -470,7 +470,7 @@
470470
* First stable release
471471
* Async SOCKS `Client` and `Server` implementation
472472
* Project was originally part of [clue/socks](https://github.com/clue/php-socks)
473-
and was split off from its latest releave v0.4.0
473+
and was split off from its latest release v0.4.0
474474
([#1](https://github.com/clue/reactphp-socks/issues/1))
475475

476476
> Upgrading from clue/socks v0.4.0? Use namespace `Clue\React\Socks` instead of `Socks` and you're ready to go!

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ private function handleSocks5(ConnectionInterface $stream, $host, $port, StreamR
451451
// IPv6 address => skip IP and port
452452
return $reader->readLength(18);
453453
} else {
454-
throw new Exception('Invalid SOCKS reponse: Invalid address type');
454+
throw new Exception('Invalid SOCKS response: Invalid address type');
455455
}
456456
});
457457
}

0 commit comments

Comments
 (0)