We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Select::new()
1 parent cf636c2 commit 805a31fCopy full SHA for 805a31f
src/libstd/sync/mpsc/select.rs
@@ -111,11 +111,18 @@ pub trait Packet {
111
}
112
113
impl Select {
114
- /// Creates a new selection structure. This set is initially empty and
115
- /// `wait` will panic!() if called.
+ /// Creates a new selection structure. This set is initially empty.
116
///
117
- /// Usage of this struct directly can sometimes be burdensome, and usage is
118
- /// rather much easier through the `select!` macro.
+ /// Usage of this struct directly can sometimes be burdensome, and usage is much easier through
+ /// the `select!` macro.
+ ///
119
+ /// # Examples
120
121
+ /// ```
122
+ /// use std::sync::mpsc::Select;
123
124
+ /// let select = Select::new();
125
126
pub fn new() -> Select {
127
Select {
128
head: ptr::null_mut(),
0 commit comments