Adjust the documentation

This commit is contained in:
Ivan Ukhov 2015-08-02 22:31:34 -04:00
parent d89cc13d7b
commit abfb603cd2
2 changed files with 2 additions and 3 deletions

View File

@ -60,8 +60,7 @@ impl Connection {
::statement::new(self.raw, statement)
}
/// Create a reusable iterator over the resulting rows of a prepared
/// statement.
/// Create an iterator over the resulting rows of a prepared statement.
#[inline]
pub fn iterate<'l, T: AsRef<str>>(&'l self, statement: T) -> Result<Iterator<'l>> {
::iterator::new(try!(::statement::new(self.raw, statement)))

View File

@ -1,7 +1,7 @@
use statement::{State, Statement, Bindable, Readable};
use {Result, Value};
/// A reusable iterator over the results of a prepared statement.
/// An iterator over the results of a prepared statement.
pub struct Iterator<'l> {
state: Option<State>,
values: Option<Vec<Value>>,