Skip to content

Commit

Permalink
libcore: allow deprecated valN methods on doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aparicio committed Dec 14, 2014
1 parent 8720174 commit 17a9c27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libcore/tuple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@
//! Using methods:
//!
//! ```
//! #[allow(deprecated)]
//! # fn main() {
//! let pair = ("pi", 3.14f64);
//! assert_eq!(pair.val0(), "pi");
//! assert_eq!(pair.val1(), 3.14f64);
//! # }
//! ```
//!
//! Using traits implemented for tuples:
Expand Down

0 comments on commit 17a9c27

Please sign in to comment.