Fix rustdoc warnings

This commit is contained in:
gwenn
2016-08-15 12:41:15 +02:00
parent b10c52f32f
commit 8f28ff17b8
6 changed files with 14 additions and 15 deletions

View File

@@ -293,10 +293,9 @@ impl Connection {
///
/// ```rust
/// # use rusqlite::{Connection, Result};
/// # type c_double = f64;
/// fn scalar_function_example(db: Connection) -> Result<()> {
/// try!(db.create_scalar_function("halve", 1, true, |ctx| {
/// let value = try!(ctx.get::<c_double>(0));
/// let value = try!(ctx.get::<f64>(0));
/// Ok(value / 2f64)
/// }));
///