From 0c509ec9c5d4e1d49d83e80bfe8a9060dfaca79b Mon Sep 17 00:00:00 2001 From: Niko Date: Tue, 2 Sep 2025 14:18:28 -0700 Subject: [PATCH] Fix inaccurate doc comment for C++ equivalent --- src/whisper_state.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/whisper_state.rs b/src/whisper_state.rs index e79d6cd..d4fae64 100644 --- a/src/whisper_state.rs +++ b/src/whisper_state.rs @@ -281,7 +281,12 @@ impl WhisperState { /// Ok(c_int) on success, Err(WhisperError) on failure. /// /// # C++ equivalent - /// `int whisper_full(struct whisper_context * ctx, struct whisper_full_params params, const float * samples, int n_samples)` + /// `int whisper_full_with_state( + /// struct whisper_context * ctx, + /// struct whisper_state * state, + /// struct whisper_full_params params, + /// const float * samples, + /// int n_samples)` pub fn full(&mut self, params: FullParams, data: &[f32]) -> Result { if data.is_empty() { // can randomly trigger segmentation faults if we don't check this