diff options
author | Alex Crichton <alex@alexcrichton.com> | 2016-09-27 02:14:39 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-27 02:14:39 +0900 |
commit | 5ece2e7c2e8cff47c41b97f18415397b61795fe1 (patch) | |
tree | d8b39e33c6feb3ca1b0bb630f8fc9e0db0cc610d /src | |
parent | a4b998b800f577d0da4e52a6e32da82af8c6e634 (diff) | |
parent | cbd99adf92917288cf9d11c50d33c029b10d6e54 (diff) | |
download | ssh2-rs-5ece2e7c2e8cff47c41b97f18415397b61795fe1.zip |
Merge pull request #47 from aidanhs/aphs-fix-libssh2_channel_wait_eof-doc
Fix libssh2 channel wait eof doc
Diffstat (limited to 'src')
-rw-r--r-- | src/channel.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/channel.rs b/src/channel.rs index fda9123..32930d8 100644 --- a/src/channel.rs +++ b/src/channel.rs @@ -288,7 +288,8 @@ impl<'sess> Channel<'sess> { } /// Artificially limit the number of bytes that will be read from this - /// channel. + /// channel. Hack intended for use by scp_recv only. + #[doc(hidden)] pub fn limit_read(&mut self, limit: u64) { self.read_limit = Some(limit); } @@ -309,7 +310,7 @@ impl<'sess> Channel<'sess> { } } - /// Wait for the remote end to acknowledge an EOF request. + /// Wait for the remote end to send EOF. pub fn wait_eof(&mut self) -> Result<(), Error> { unsafe { self.sess.rc(raw::libssh2_channel_wait_eof(self.raw)) } } |