@@ -134,10 +134,10 @@ impl<W: Write> StreamSession<W> {
134
134
///
135
135
/// ```
136
136
/// use rexpect::{spawn, ReadUntil};
137
- /// # use rexpect::errors::* ;
137
+ /// # use rexpect::error::Error ;
138
138
///
139
139
/// # fn main() {
140
- /// # || -> Result<()> {
140
+ /// # || -> Result<(), Error > {
141
141
/// let mut s = spawn("cat", Some(1000))?;
142
142
/// s.send_line("hello, polly!")?;
143
143
/// s.exp_any(vec![ReadUntil::String("hello".into()),
@@ -178,10 +178,10 @@ impl DerefMut for PtySession {
178
178
/// ```
179
179
///
180
180
/// use rexpect::spawn;
181
- /// # use rexpect::errors::* ;
181
+ /// # use rexpect::error::Error ;
182
182
///
183
183
/// # fn main() {
184
- /// # || -> Result<()> {
184
+ /// # || -> Result<(), Error > {
185
185
/// let mut s = spawn("cat", Some(1000))?;
186
186
/// s.send_line("hello, polly!")?;
187
187
/// let line = s.read_line()?;
@@ -283,10 +283,10 @@ impl PtyReplSession {
283
283
///
284
284
/// ```
285
285
/// use rexpect::spawn_bash;
286
- /// # use rexpect::errors::* ;
286
+ /// # use rexpect::error::Error ;
287
287
///
288
288
/// # fn main() {
289
- /// # || -> Result<()> {
289
+ /// # || -> Result<(), Error > {
290
290
/// let mut p = spawn_bash(Some(1000))?;
291
291
/// p.execute("cat <(echo ready) -", "ready")?;
292
292
/// p.send_line("hans")?;
0 commit comments