File tree 7 files changed +11
-11
lines changed
7 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ impl Ascii {
39
39
self . chr
40
40
}
41
41
42
- /// Deprecated: use `as_byte` isntead .
42
+ /// Deprecated: use `as_byte` instead .
43
43
#[ deprecated = "use as_byte" ]
44
44
pub fn to_byte ( self ) -> u8 {
45
45
self . as_byte ( )
@@ -52,7 +52,7 @@ impl Ascii {
52
52
self . chr as char
53
53
}
54
54
55
- /// Deprecated: use `as_char` isntead .
55
+ /// Deprecated: use `as_char` instead .
56
56
#[ deprecated = "use as_char" ]
57
57
pub fn to_char ( self ) -> char {
58
58
self . as_char ( )
Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ impl<T: Send> Sender<T> {
547
547
/// so it is possible for a send to succeed (the other end is alive), but
548
548
/// then the other end could immediately disconnect.
549
549
///
550
- /// The purpose of this functionality is to propagate panicks among tasks.
550
+ /// The purpose of this functionality is to propagate panics among tasks.
551
551
/// If a panic is not desired, then consider using the `send_opt` method
552
552
#[ experimental = "this function is being considered candidate for removal \
553
553
to adhere to the general guidelines of rust"]
@@ -790,7 +790,7 @@ impl<T: Send> Receiver<T> {
790
790
///
791
791
/// Similar to channels, this method will trigger a task panic if the
792
792
/// other end of the channel has hung up (been deallocated). The purpose of
793
- /// this is to propagate panicks among tasks.
793
+ /// this is to propagate panics among tasks.
794
794
///
795
795
/// If a panic is not desired, then there are two options:
796
796
///
Original file line number Diff line number Diff line change @@ -383,8 +383,8 @@ impl FromStr for SocketAddr {
383
383
/// expected by its `FromStr` implementation or a string like `<host_name>:<port>` pair
384
384
/// where `<port>` is a `u16` value.
385
385
///
386
- /// For the former, `to_socker_addr_all ` returns a vector with a single element corresponding
387
- /// to that socker address.
386
+ /// For the former, `to_socket_addr_all ` returns a vector with a single element corresponding
387
+ /// to that socket address.
388
388
///
389
389
/// For the latter, it tries to resolve the host name and returns a vector of all IP addresses
390
390
/// for the host name, each joined with the port.
@@ -443,7 +443,7 @@ pub trait ToSocketAddr {
443
443
444
444
/// Converts this object to all available socket address values.
445
445
///
446
- /// Some values like host name string naturally corrrespond to multiple IP addresses.
446
+ /// Some values like host name string naturally correspond to multiple IP addresses.
447
447
/// This method tries to return all available addresses corresponding to this object.
448
448
///
449
449
/// By default this method delegates to `to_socket_addr` method, creating a singleton
Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ impl TcpListener {
319
319
/// to this listener. The port allocated can be queried via the
320
320
/// `socket_name` function.
321
321
///
322
- /// The address type can be any implementor of `ToSocketAddr` trait. See its
322
+ /// The address type can be any implementer of `ToSocketAddr` trait. See its
323
323
/// documentation for concrete examples.
324
324
pub fn bind < A : ToSocketAddr > ( addr : A ) -> IoResult < TcpListener > {
325
325
super :: with_addresses ( addr, |addr| {
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ impl UdpSocket {
82
82
/// Sends data on the socket to the given address. Returns nothing on
83
83
/// success.
84
84
///
85
- /// Address type can be any implementor of `ToSocketAddr` trait. See its
85
+ /// Address type can be any implementer of `ToSocketAddr` trait. See its
86
86
/// documentation for concrete examples.
87
87
pub fn send_to < A : ToSocketAddr > ( & mut self , buf : & [ u8 ] , addr : A ) -> IoResult < ( ) > {
88
88
super :: with_addresses ( addr, |addr| self . inner . send_to ( buf, addr) )
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ pub struct RWLock<T> {
60
60
data : UnsafeCell < T > ,
61
61
}
62
62
63
- /// Structure representing a staticaly allocated RWLock.
63
+ /// Structure representing a statically allocated RWLock.
64
64
///
65
65
/// This structure is intended to be used inside of a `static` and will provide
66
66
/// automatic global access as well as lazy initialization. The internal
Original file line number Diff line number Diff line change 17
17
//!
18
18
//! There are no restrictions on what types can be placed into a scoped
19
19
//! variable, but all scoped variables are initialized to the equivalent of
20
- //! null. Scoped thread local stor is useful when a value is present for a known
20
+ //! null. Scoped thread local storage is useful when a value is present for a known
21
21
//! period of time and it is not required to relinquish ownership of the
22
22
//! contents.
23
23
//!
You can’t perform that action at this time.
0 commit comments