Skip to content

Commit

Permalink
fix examples in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pacman82 committed May 2, 2022
1 parent 10b4e54 commit 0690ad0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion odbc-api/src/cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ where
/// let buffer = TextRowSet::for_cursor(batch_size, &cursor, Some(4000)).unwrap();
/// let mut cursor = cursor.bind_buffer(buffer).unwrap();
/// // Iterate over batches
/// while let Some(batch) = cursor.fetch(true).unwrap() {
/// while let Some(batch) = cursor.fetch().unwrap() {
/// // ... print values in batch ...
/// }
/// }
Expand Down
2 changes: 1 addition & 1 deletion odbc-api/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl<T> ExtendResult for Result<T, Error> {
// Define that here rather than in `sql_result` mod to keep the `handles` module entirely agnostic
// about the top level `Error` type.
impl<T> SqlResult<T> {
/// [`Self::Success`] and [`Self::SucccesWithInfo`] are mapped to Ok. In case of
/// [`Self::Success`] and [`Self::SuccessWithInfo`] are mapped to Ok. In case of
/// [`Self::SuccessWithInfo`] any diagnostics are logged. [`Self::Error`] is mapped to error.
pub fn into_result(self, handle: &impl Diagnostics) -> Result<T, Error> {
let error_for_truncation = false;
Expand Down

0 comments on commit 0690ad0

Please sign in to comment.