fix: use consistent number formatting in doc comments

Agent-Logs-Url: https://github.com/vrc-get/vrc-get/sessions/fc1392fa-eac7-4db6-8c73-c1472e79ceb8

Co-authored-by: anatawa12 <22656849+anatawa12@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-11 15:28:49 +00:00 committed by GitHub
commit 02fe4e64ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -107,7 +107,7 @@ impl DsStore {
///
/// # Panics
///
/// Panics if the serialized B-tree node exceeds 8 192 bytes (i.e. more
/// Panics if the serialized B-tree node exceeds 8_192 bytes (i.e. more
/// than ~50 typical entries). For DMG use cases this limit is never
/// reached.
pub fn to_bytes(&self) -> Vec<u8> {
@ -188,7 +188,7 @@ fn build_file(entries: &[Entry]) -> Vec<u8> {
// library (or our writer), regardless of content.
// ---------------------------------------------------------------------------
/// Total file size produced by this writer (16 388 bytes).
/// Total file size produced by this writer (16_388 bytes).
const FILE_SIZE: usize = 16_388;
/// The 16 "unknown" bytes in the file header — identical in every new file
@ -204,7 +204,7 @@ const ROOT_BUDDY_OFFSET: u32 = 0x800;
const ROOT_BLOCK_ADDR: u32 = ROOT_BUDDY_OFFSET | 11; // width 11 → size 2048
/// File offset of the root block = buddy_offset + 4.
const ROOT_FILE_OFFSET: usize = ROOT_BUDDY_OFFSET as usize + 4;
/// Size of the root block (2^11 = 2 048 bytes).
/// Size of the root block (2^11 = 2_048 bytes).
const ROOT_BLOCK_SIZE: usize = 2048;
// ---- block 1: DSDB ----
@ -228,7 +228,7 @@ const BTREE_BUDDY_OFFSET: u32 = 0x2000;
const BTREE_BLOCK_ADDR: u32 = BTREE_BUDDY_OFFSET | 13; // width 13 → size 8192
/// File offset of the B-tree node = buddy_offset + 4.
const BTREE_FILE_OFFSET: usize = BTREE_BUDDY_OFFSET as usize + 4;
/// Size of the B-tree block (2^13 = 8 192 bytes).
/// Size of the B-tree block (2^13 = 8_192 bytes).
const BTREE_BLOCK_SIZE: usize = 8192;
// ---------------------------------------------------------------------------