Skip to content

Commit

Permalink
Merge pull request #2898 from Vrajs16/fix-docs
Browse files Browse the repository at this point in the history
Fixed docs
  • Loading branch information
abonander authored Nov 25, 2023
2 parents c55aba0 + e214a08 commit 929af41
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sqlx-core/src/row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub trait Row: Unpin + Send + Sync + 'static {
self.try_column(index).unwrap()
}

/// Gets the column information at `index` or `None` if out of bounds.
/// Gets the column information at `index` or a `ColumnIndexOutOfBounds` error if out of bounds.
fn try_column<I>(&self, index: I) -> Result<&<Self::Database as Database>::Column, Error>
where
I: ColumnIndex<Self>,
Expand Down
2 changes: 1 addition & 1 deletion sqlx-core/src/statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub trait Statement<'q>: Send + Sync {
self.try_column(index).unwrap()
}

/// Gets the column information at `index` or `None` if out of bounds.
/// Gets the column information at `index` or a `ColumnIndexOutOfBounds` error if out of bounds.
fn try_column<I>(&self, index: I) -> Result<&<Self::Database as Database>::Column, Error>
where
I: ColumnIndex<Self>,
Expand Down

0 comments on commit 929af41

Please sign in to comment.