Skip to content

Commit fa64965

Browse files
committed
Fix a couple places in docs where try_send wasn't changed to send_opt
1 parent b75683c commit fa64965

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/comm/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ impl<T: Send> Sender<T> {
479479
/// then the other end could immediately disconnect.
480480
///
481481
/// The purpose of this functionality is to propagate failure among tasks.
482-
/// If failure is not desired, then consider using the `try_send` method
482+
/// If failure is not desired, then consider using the `send_opt` method
483483
pub fn send(&self, t: T) {
484484
if self.send_opt(t).is_err() {
485485
fail!("sending on a closed channel");
@@ -669,7 +669,7 @@ impl<T: Send> SyncSender<T> {
669669

670670
/// Attempts to send a value on this channel without blocking.
671671
///
672-
/// This method semantically differs from `Sender::try_send` because it can
672+
/// This method semantically differs from `Sender::send_opt` because it can
673673
/// fail if the receiver has not disconnected yet. If the buffer on this
674674
/// channel is full, this function will immediately return the data back to
675675
/// the callee.

0 commit comments

Comments
 (0)