修正 storage.rs 注释错别字
- server-rs/crates/api-server/src/tripo3d/storage.rs:sniff_model_content_type 文档注释「说慌」改为「说谎」 验证:npm run check:encoding、git diff --check
This commit is contained in:
@@ -188,7 +188,7 @@ const GLB_MAGIC: &[u8] = b"glTF";
|
||||
/// FBX 二进制头,固定为 `Kaydara FBX Binary` 加两个空格与 NUL;截到前缀即可判定。
|
||||
const FBX_MAGIC: &[u8] = b"Kaydara FBX Binary";
|
||||
|
||||
/// 按字节魔数识别模型格式。字节是唯一不会被 provider 说慌的真相来源。
|
||||
/// 按字节魔数识别模型格式。字节是唯一不会被 provider 说谎的真相来源。
|
||||
fn sniff_model_content_type(bytes: &[u8]) -> Option<&'static str> {
|
||||
if bytes.starts_with(GLB_MAGIC) {
|
||||
return Some("model/gltf-binary");
|
||||
|
||||
Reference in New Issue
Block a user