Skip to content

Commit 0b0e850

Browse files
committed
Actually fix the doc-test
1 parent cff09fc commit 0b0e850

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llama-cpp-2/src/token_type.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ pub enum LlamaTokenType {
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_int)?;
36+
/// let llama_token_type = LlamaTokenType::try_from(0 as llama_cpp_sys_2::llama_token_type)?;
3737
/// assert_eq!(llama_token_type, LlamaTokenType::Undefined);
3838
///
39-
/// let bad_llama_token_type = LlamaTokenType::try_from(100 as c_int);
39+
/// let bad_llama_token_type = LlamaTokenType::try_from(100 as llama_cpp_sys_2::llama_token_type);
4040
/// assert_eq!(Err(LlamaTokenTypeFromIntError::UnknownValue(100)), bad_llama_token_type);
4141
/// # Ok(())
4242
/// # }

0 commit comments

Comments
 (0)