From d4fc8b6188627ae8d553cf282b1371e3de7b01f9 Mon Sep 17 00:00:00 2001 From: Mei Date: Fri, 14 Apr 2017 21:53:10 -0400 Subject: [PATCH] Fix example in README The example in the README would fail to compile due to an error: ``` --> src/main.rs:15:1 | 15 | command!(ping(_context, message) { | ^^^^^^^ error: aborting due to previous error ``` This can be fixed by prefixing `extern crate` with `#[macro_use]`. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a708ccca1f0..bb7cc37b3db 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ docs. A basic ping-pong bot looks like: ```rust,no-run -extern crate serenity; +#[macro_use] extern crate serenity; use serenity::client::Client; use std::env;