From d21e8c04d2d69a9a49997717c376d7aa3e3e23cd Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sun, 12 Apr 2026 07:32:02 +0800 Subject: [PATCH] correct is_this_format document --- src/scripts/base.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/base.rs b/src/scripts/base.rs index 3824e7b..f349b2c 100644 --- a/src/scripts/base.rs +++ b/src/scripts/base.rs @@ -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.