correct is_this_format document

This commit is contained in:
2026-04-12 07:32:02 +08:00
parent 52145d7c04
commit d21e8c04d2

View File

@@ -108,7 +108,7 @@ pub trait ScriptBuilder: std::fmt::Debug {
/// Checks if the given filename and buffer match this script format.
/// * `filename` - The name of the file to check.
/// * `buf` - The buffer containing the script data.
/// * `buf_len` - The length of the buffer.
/// * `buf_len` - The length of the valid data in the buffer (it MUST <= buf.len()).
///
/// Returns a score (0-255) indicating how well the format matches.
/// A higher score means a better match.