Remove calls to deprecated drain* methods from docs (#102)

This commit is contained in:
jaystrictor
2017-04-14 09:06:58 -07:00
committed by Carl Lerche
parent 4645f6ec4b
commit e158160418
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -29,12 +29,12 @@
//! buf.put(&b"hello world"[..]);
//! buf.put_u16::<BigEndian>(1234);
//!
//! let a = buf.drain();
//! let a = buf.take();
//! assert_eq!(a, b"hello world\x04\xD2"[..]);
//!
//! buf.put(&b"goodbye world"[..]);
//!
//! let b = buf.drain();
//! let b = buf.take();
//! assert_eq!(b, b"goodbye world"[..]);
//!
//! assert_eq!(buf.capacity(), 998);