Skip to content

Commit

Permalink
modify prepare_bytes doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yuana1 committed Jan 22, 2019
1 parent 197a8f9 commit f20646a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/statement/prepare.rs
Expand Up @@ -59,6 +59,8 @@ impl<'a, 'b> Statement<'a, 'b, Allocated, NoResult> {
/// // need encode_rs crate
/// // let mut stmt = stmt.prepare_bytes(&GB2312.encode("select '你好' as hello").0)?;
///
/// # Ok(())
/// # }
/// ```
pub fn prepare_bytes(mut self, bytes: &[u8]) -> Result<Statement<'a, 'b, Prepared, NoResult>> {
self.raii.prepare_byte(bytes).into_result(&mut self)?;
Expand Down

0 comments on commit f20646a

Please sign in to comment.