aboutsummaryrefslogtreecommitdiff
path: root/src/builder/create_embed.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2018-06-24 21:13:03 +0200
committeracdenisSK <[email protected]>2018-06-24 21:13:23 +0200
commit703d13564f9081839eb77e4e4699d711b1de895a (patch)
tree7ebfad4dd735a2d3656a97ea292a2441bfc203b4 /src/builder/create_embed.rs
parentAdd missing Send and Sync bounds (diff)
downloadserenity-703d13564f9081839eb77e4e4699d711b1de895a.tar.xz
serenity-703d13564f9081839eb77e4e4699d711b1de895a.zip
Explain `fields` more
Diffstat (limited to 'src/builder/create_embed.rs')
-rw-r--r--src/builder/create_embed.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/builder/create_embed.rs b/src/builder/create_embed.rs
index 1781225..560e00f 100644
--- a/src/builder/create_embed.rs
+++ b/src/builder/create_embed.rs
@@ -138,6 +138,10 @@ impl CreateEmbed {
}
/// Adds multiple fields at once.
+ ///
+ /// This is sugar to reduce the need of calling [`field`] manually multiple times.
+ ///
+ /// [`field`]: #method.field
pub fn fields<T, U, It>(mut self, fields: It) -> Self
where It: IntoIterator<Item=(T, U, bool)>,
T: Display,