File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -111,11 +111,18 @@ pub trait Packet {
111
111
}
112
112
113
113
impl Select {
114
- /// Creates a new selection structure. This set is initially empty and
115
- /// `wait` will panic!() if called.
114
+ /// Creates a new selection structure. This set is initially empty.
116
115
///
117
- /// Usage of this struct directly can sometimes be burdensome, and usage is
118
- /// rather much easier through the `select!` macro.
116
+ /// Usage of this struct directly can sometimes be burdensome, and usage is much easier through
117
+ /// the `select!` macro.
118
+ ///
119
+ /// # Examples
120
+ ///
121
+ /// ```
122
+ /// use std::sync::mpsc::Select;
123
+ ///
124
+ /// let select = Select::new();
125
+ /// ```
119
126
pub fn new ( ) -> Select {
120
127
Select {
121
128
head : ptr:: null_mut ( ) ,
You can’t perform that action at this time.
0 commit comments