aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rwxr-xr-xREADME.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index f4beecba..7f3e2f0d 100755
--- a/README.md
+++ b/README.md
@@ -70,7 +70,7 @@ let bot = Bot::offline("bot");
bot.join("localhost".try_into().unwrap()).await.unwrap();
loop {
- match bot.recv().await {
+ match bot.next().await {
Event::Message(m) {
if m.username == bot.username { return };
if m.message = "go" {