about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRune Tynan <runetynan@gmail.com>2023-02-28 15:52:00 -0500
committerRune Tynan <runetynan@gmail.com>2023-02-28 15:52:00 -0500
commit79f0021c16e98e72b8f20b3b11f8e7feac1aedc4 (patch)
treea2302149034b4c797f4e0788f4664ab3585aeace
parent22c80a0bf6ec4608be8a17796e4d1801a8b45c0c (diff)
downloadrust-79f0021c16e98e72b8f20b3b11f8e7feac1aedc4.tar.gz
rust-79f0021c16e98e72b8f20b3b11f8e7feac1aedc4.zip
Update header comment
-rw-r--r--compiler/rustc_metadata/src/rmeta/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/mod.rs b/compiler/rustc_metadata/src/rmeta/mod.rs
index 9ed4d241bd0..3800b270794 100644
--- a/compiler/rustc_metadata/src/rmeta/mod.rs
+++ b/compiler/rustc_metadata/src/rmeta/mod.rs
@@ -59,9 +59,9 @@ const METADATA_VERSION: u8 = 7;
 
 /// Metadata header which includes `METADATA_VERSION`.
 ///
-/// This header is followed by the position of the `CrateRoot`,
-/// which is encoded as a 32-bit big-endian unsigned integer,
-/// and further followed by the rustc version string.
+/// This header is followed by the length of the compressed data, then
+/// the position of the `CrateRoot`, which is encoded as a 32-bit big-endian
+/// unsigned integer, and further followed by the rustc version string.
 pub const METADATA_HEADER: &[u8] = &[b'r', b'u', b's', b't', 0, 0, 0, METADATA_VERSION];
 
 /// A value of type T referred to by its absolute position