From 68ae7de1d54dd13bfe0da1957fbd63e74d004f03 Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Sun, 22 Jan 2017 19:42:51 -0500 Subject: [PATCH] Update docs on Row::get --- src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d7016e1..924d301 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1105,9 +1105,11 @@ impl<'a, 'stmt> Row<'a, 'stmt> { /// /// ## Failure /// - /// Panics if the underlying SQLite column type is not a valid type as a source for `T`. + /// Panics if calling `row.get_checked(idx)` would return an error, including: /// - /// Panics if `idx` is outside the range of columns in the returned query. + /// * If the underlying SQLite column type is not a valid type as a source for `T` + /// * If the underlying SQLite integral value is outside the range representable by `T` + /// * If `idx` is outside the range of columns in the returned query pub fn get(&self, idx: I) -> T { self.get_checked(idx).unwrap() }