about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorJames Sanders <sanderjd@gmail.com>2014-04-18 17:40:34 -0600
committerJames Sanders <sanderjd@gmail.com>2014-04-18 17:40:34 -0600
commitfa64965d6920700c0770dd76cb32aad382cc9d4e (patch)
tree359cafa1d1025a4b7dc8ddb9a4266ffde469a79e /src/libstd
parentb75683cadf6c4c55360202cd6a0106be80532451 (diff)
downloadrust-fa64965d6920700c0770dd76cb32aad382cc9d4e.tar.gz
rust-fa64965d6920700c0770dd76cb32aad382cc9d4e.zip
Fix a couple places in docs where try_send wasn't changed to send_opt
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/comm/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/comm/mod.rs b/src/libstd/comm/mod.rs
index 7700000b869..901a9051d0a 100644
--- a/src/libstd/comm/mod.rs
+++ b/src/libstd/comm/mod.rs
@@ -479,7 +479,7 @@ impl<T: Send> Sender<T> {
     /// then the other end could immediately disconnect.
     ///
     /// The purpose of this functionality is to propagate failure among tasks.
-    /// If failure is not desired, then consider using the `try_send` method
+    /// If failure is not desired, then consider using the `send_opt` method
     pub fn send(&self, t: T) {
         if self.send_opt(t).is_err() {
             fail!("sending on a closed channel");
@@ -669,7 +669,7 @@ impl<T: Send> SyncSender<T> {
 
     /// Attempts to send a value on this channel without blocking.
     ///
-    /// This method semantically differs from `Sender::try_send` because it can
+    /// This method semantically differs from `Sender::send_opt` because it can
     /// fail if the receiver has not disconnected yet. If the buffer on this
     /// channel is full, this function will immediately return the data back to
     /// the callee.