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
+1 -1
View File
@@ -1111,7 +1111,7 @@ impl BytesMut {
/// buf.put(&[0; 64][..]);
///
/// let ptr = buf.as_ptr();
/// let other = buf.drain();
/// let other = buf.take();
///
/// assert!(buf.is_empty());
/// assert_eq!(buf.capacity(), 64);