]> git.lizzy.rs Git - rust.git/commitdiff
reverting other changes
authorFakeKane <andrewyli@gmail.com>
Mon, 5 Jan 2015 13:57:43 +0000 (08:57 -0500)
committerFakeKane <andrewyli@gmail.com>
Mon, 5 Jan 2015 15:25:22 +0000 (10:25 -0500)
src/libstd/tuple.rs

index f40b62182d42c73bbb1fbcbd11c215a51501711f..a12844f039ec6b4c1779aff4ec634712a722965a 100644 (file)
 
 //! Operations on tuples
 //!
-//! To access a single element of a tuple one can use the following
-//! methods:
+//! To access the _N_-th element of a tuple one can use `N` itself
+//! as a field of the tuple.
 //!
-//! * `valN` - returns a value of _N_-th element
-//! * `refN` - returns a reference to _N_-th element
-//! * `mutN` - returns a mutable reference to _N_-th element
-//!
-//! Indexing starts from zero, so `val0` returns first value, `val1`
+//! Indexing starts from zero, so `0` returns first value, `1`
 //! returns second value, and so on. In general, a tuple with _S_
-//! elements provides aforementioned methods suffixed with numbers
-//! from `0` to `S-1`. Traits which contain these methods are
-//! implemented for tuples with up to 12 elements.
+//! elements provides aforementioned fields from `0` to `S-1`
 //!
 //! If every type inside a tuple implements one of the following
 //! traits, then a tuple itself also implements it.