Document CachedStatement::discard.

This commit is contained in:
John Gallagher 2016-05-19 20:36:41 -05:00
parent dc1b0e39ed
commit 8ce2f5888f

View File

@ -90,6 +90,8 @@ impl<'conn> CachedStatement<'conn> {
} }
} }
/// Discard the statement, preventing it from being returned to its `Connection`'s collection
/// of cached statements.
pub fn discard(mut self) { pub fn discard(mut self) {
self.stmt = None; self.stmt = None;
} }