Skip to content

Commit fa7b508

Browse files
committed
Fix doctest
1 parent 5bce968 commit fa7b508

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llama-cpp-2/src/token_type.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ pub enum LlamaTokenType {
2828
///
2929
/// ```
3030
/// # use std::convert::TryFrom;
31-
/// # use std::ffi::c_uint;
31+
/// # use std::ffi::c_int;
3232
/// # use std::num::TryFromIntError;
3333
/// # use std::result::Result;
3434
/// # use llama_cpp_2::token_type::{LlamaTokenTypeFromIntError, LlamaTokenType};
3535
/// # fn main() -> Result<(), LlamaTokenTypeFromIntError> {
36-
/// let llama_token_type = LlamaTokenType::try_from(0 as c_uint)?;
36+
/// let llama_token_type = LlamaTokenType::try_from(0 as c_int)?;
3737
/// assert_eq!(llama_token_type, LlamaTokenType::Undefined);
3838
///
39-
/// let bad_llama_token_type = LlamaTokenType::try_from(100 as c_uint);
39+
/// let bad_llama_token_type = LlamaTokenType::try_from(100 as c_int);
4040
/// assert_eq!(Err(LlamaTokenTypeFromIntError::UnknownValue(100)), bad_llama_token_type);
4141
/// # Ok(())
4242
/// # }

0 commit comments

Comments
 (0)