aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-14 00:31:12 +0200
committeracdenisSK <[email protected]>2017-07-14 00:31:12 +0200
commit14fd41b0d62ab441b6600028792641d813f09cd8 (patch)
tree00712a9f119ecb19a76e7c774c2e2a9a638ec6e2
parentAdd `ChannelId,PrivateChannel,GuildChannel::name` functions (diff)
downloadserenity-14fd41b0d62ab441b6600028792641d813f09cd8.tar.xz
serenity-14fd41b0d62ab441b6600028792641d813f09cd8.zip
Fix the doc on `PrivateChannel::name`
-rw-r--r--src/model/channel/private_channel.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/channel/private_channel.rs b/src/model/channel/private_channel.rs
index 5d70a73..f6d79ed 100644
--- a/src/model/channel/private_channel.rs
+++ b/src/model/channel/private_channel.rs
@@ -170,7 +170,7 @@ impl PrivateChannel {
self.id.messages(f)
}
- /// Returns "DM with $username$".
+ /// Returns "DM with $username#discriminator".
pub fn name(&self) -> String {
format!("DM with {}", self.recipient.read().unwrap().tag())
}