diff options
| author | Zeyla Hellyer <[email protected]> | 2017-11-01 07:48:24 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-11-01 07:48:24 -0700 |
| commit | e219a6a9d6a890b008fc390a909ae504a0c1a329 (patch) | |
| tree | 7b2e3cb85e24a7864936c8e2eff1b6a982882f88 /src/gateway | |
| parent | Fix ping bot example (#211) (diff) | |
| download | serenity-e219a6a9d6a890b008fc390a909ae504a0c1a329.tar.xz serenity-e219a6a9d6a890b008fc390a909ae504a0c1a329.zip | |
Use consistent token names in examples
The names of environment variable tokens in the examples differed, so
this makes them all use the same name.
Diffstat (limited to 'src/gateway')
| -rw-r--r-- | src/gateway/shard.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gateway/shard.rs b/src/gateway/shard.rs index e5fe65d..f5888af 100644 --- a/src/gateway/shard.rs +++ b/src/gateway/shard.rs @@ -116,7 +116,7 @@ impl Shard { /// use serenity::http; /// use std::env; /// - /// let token = env::var("DISCORD_BOT_TOKEN").expect("Token in environment"); + /// let token = env::var("DISCORD_TOKEN").expect("Token in environment"); /// // retrieve the gateway response, which contains the URL to connect to /// let gateway = http::get_gateway().expect("Valid gateway response").url; /// let shard = Shard::new(&gateway, &token, None) |