Update README.md in chat example

This commit is contained in:
invzhi 2017-12-21 12:02:38 +08:00
parent dad49c62a4
commit 0a03b43b0d
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ Clients send requests to the hub using the `register`, `unregister` and
`broadcast` channels.
The hub registers clients by adding the client pointer as a key in the
`clients` map. The map value is always true.
`clients` map. The map value is empty struct.
The unregister code is a little more complicated. In addition to deleting the
client pointer from the `clients` map, the hub closes the clients's `send`