Skip to content

Commit

Permalink
Fix create_invite's doc-example. (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakelezz authored and arqunis committed Jul 15, 2019
1 parent 1a209e8 commit 45d44cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/channel/guild_channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl GuildChannel {
/// Create an invite that can only be used 5 times:
///
/// ```rust,ignore
/// let invite = channel.create_invite(|i| i.max_uses(5));
/// let invite = channel.create_invite(&context, |i| i.max_uses(5));
/// ```
#[cfg(all(feature = "utils", feature = "client"))]
pub fn create_invite<F>(&self, cache_http: impl CacheHttp, f: F) -> Result<RichInvite>
Expand Down

0 comments on commit 45d44cb

Please sign in to comment.