Skip to content

Commit

Permalink
Small documentation improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
nkoppel committed Dec 5, 2024
1 parent 734d281 commit 6d3dec9
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions llama-cpp-2/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 207,7 @@ impl<'model> LlamaContext<'model> {
///
/// This is a convience method that implements:
/// ```no_run
/// LlamaTokenDataArray::from_iter(
/// self.candidates(),
/// false,
/// )
/// LlamaTokenDataArray::from_iter(ctx.candidates(), false)
/// ```
///
/// # Panics
Expand Down Expand Up @@ -261,10 258,7 @@ impl<'model> LlamaContext<'model> {
///
/// This is a convience method that implements:
/// ```no_run
/// LlamaTokenDataArray::from_iter(
/// self.candidates_ith(i),
/// false,
/// )
/// LlamaTokenDataArray::from_iter(ctx.candidates_ith(i), false)
/// ```
///
/// # Panics
Expand Down

0 comments on commit 6d3dec9

Please sign in to comment.