aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-03-15 21:46:20 -0700
committerZeyla Hellyer <[email protected]>2017-03-17 15:24:01 -0700
commit5830d88e35c8da774067154e31c42b0b7b553451 (patch)
treebf87d024efd3cee2877af6b11d0d87ce5db0c135
parentRe-work the changelog (diff)
downloadserenity-5830d88e35c8da774067154e31c42b0b7b553451.tar.xz
serenity-5830d88e35c8da774067154e31c42b0b7b553451.zip
Fix Cargo.toml requirements in examples
In the examples, always use the latest git master revision. Additionally, fix the stated required features for each example.
-rw-r--r--examples/03_struct_utilities/src/main.rs9
-rw-r--r--examples/06_command_framework/src/main.rs5
-rw-r--r--examples/07_voice/src/main.rs2
-rw-r--r--examples/08_search/src/main.rs6
4 files changed, 7 insertions, 15 deletions
diff --git a/examples/03_struct_utilities/src/main.rs b/examples/03_struct_utilities/src/main.rs
index 4c3a0bb..76ff75d 100644
--- a/examples/03_struct_utilities/src/main.rs
+++ b/examples/03_struct_utilities/src/main.rs
@@ -1,12 +1,3 @@
-//! Requires the 'methods' feature flag be enabled in your project's Cargo.toml.
-//!
-//! This can be activated by specifying the feature in the dependency section:
-//!
-//! ```toml
-//! [dependencies.serenity]
-//! git = "https://github.com/zeyla/serenity.git"
-//! ```
-
extern crate serenity;
use serenity::Client;
diff --git a/examples/06_command_framework/src/main.rs b/examples/06_command_framework/src/main.rs
index 1eb1b05..071ecdc 100644
--- a/examples/06_command_framework/src/main.rs
+++ b/examples/06_command_framework/src/main.rs
@@ -1,6 +1,7 @@
-//! Requires the 'methods' feature flag be enabled in your project's Cargo.toml.
+//! Requires the 'framework' feature flag be enabled in your project's
+//! `Cargo.toml`.
//!
-//! This can be activated by specifying the feature in the dependency section:
+//! This can be enabled by specifying the feature in the dependency section:
//!
//! ```toml
//! [dependencies.serenity]
diff --git a/examples/07_voice/src/main.rs b/examples/07_voice/src/main.rs
index 834cb13..57293f8 100644
--- a/examples/07_voice/src/main.rs
+++ b/examples/07_voice/src/main.rs
@@ -3,7 +3,7 @@
//!
//! ```toml
//! [dependencies.serenity]
-//! version = "*"
+//! git = "https://github.com/zeyla/serenity.git"
//! features = ["cache", "framework", "voice"]
//! ```
diff --git a/examples/08_search/src/main.rs b/examples/08_search/src/main.rs
index 72059f6..a7a68b5 100644
--- a/examples/08_search/src/main.rs
+++ b/examples/08_search/src/main.rs
@@ -1,9 +1,9 @@
-//! Requires the "cache", "methods", and "voice" features be enabled in your
-//! Cargo.toml, like so:
+//! Requires the "cache" and "framework" features be enabled in your
+//! `Cargo.toml`, like so:
//!
//! ```toml
//! [dependencies.serenity]
-//! version = "*"
+//! git = "https://github.com/zeyla/serenity.git"
//! features = ["cache", "framework"]
//! ```
//!