Skip to content

Commit

Permalink
Skip doctest on Windows (no tokenizer file because no make)
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil committed Nov 7, 2024
1 parent a326447 commit 218fd3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tokenizers/src/tokenizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,8 @@ where
/// Example:
///
/// ```
/// # #[cfg(not(target_os = "windows"))]
/// # {
/// use tokenizers::Tokenizer;
/// let tokenizer = Tokenizer::from_file("data/roberta.json").unwrap();
///
Expand All @@ -933,6 +935,7 @@ where
/// decode_stream.step(1246).unwrap(),
/// Some(" example".to_string())
/// );
/// # }
/// ```
///
/// Returning `None` means the given id is not enough to produce a chunk.
Expand Down

0 comments on commit 218fd3b

Please sign in to comment.