File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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/// # }
You can’t perform that action at this time.
0 commit comments