Skip to content

Commit

Permalink
Update src/sync/channel.rs
Browse files Browse the repository at this point in the history
Co-Authored-By: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
  • Loading branch information
Licenser and yoshuawuyts committed Feb 24, 2020
1 parent bd1b4a1 commit d181398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sync/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ use crate::sync::WakerSet;
#[cfg(feature = "unstable")]
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
pub fn channel<T>(cap: usize) -> (Sender<T>, Receiver<T>) {
assert!(cap >= 1);
debug_assert!(cap >= 1);
let channel = Arc::new(Channel::with_capacity(cap));
let s = Sender {
channel: channel.clone(),
Expand Down

0 comments on commit d181398

Please sign in to comment.