docs: delete id arguments from create_state description

This commit is contained in:
Yuniru Yuni 2023-04-25 23:04:54 +09:00
parent 3a1fd683d6
commit 4e334f4baa
No known key found for this signature in database
GPG key ID: 33E3309A80C571CD

View file

@ -59,12 +59,8 @@ impl WhisperContext {
/// Create a new state object, ready for use. /// Create a new state object, ready for use.
/// ///
/// # Arguments
/// * id: The ID of the state object. Must be unique.
///
/// # Returns /// # Returns
/// Ok(()) on success, Err(WhisperError) on failure. /// Ok(WhieperState) on success, Err(WhisperError) on failure.
/// If the ID is already in use, returns Err(WhisperError::StateIdAlreadyExists).
/// ///
/// # C++ equivalent /// # C++ equivalent
/// `struct whisper_state * whisper_init_state(struct whisper_context * ctx);` /// `struct whisper_state * whisper_init_state(struct whisper_context * ctx);`