dag: fix segment format comment

Summary: The first byte is the flag.

Reviewed By: sfilipco

Differential Revision: D26654640

fbshipit-source-id: 4d66f14c73fe40a154ca7c08f9a9dff3a54ae337
This commit is contained in:
Jun Wu 2021-02-25 08:31:00 -08:00 committed by Facebook GitHub Bot
parent 52a1c515a8
commit 7684e79be6

View File

@ -39,7 +39,7 @@ pub struct Segment(pub(crate) Bytes);
// Serialization format for Segment: // Serialization format for Segment:
// //
// ```plain,ignore // ```plain,ignore
// SEGMENT := LEVEL (1B) + HIGH (8B) + vlq(HIGH-LOW) + vlq(PARENT_COUNT) + vlq(VLQ, PARENTS) // SEGMENT := FLAG (1B) + LEVEL (1B) + HIGH (8B) + vlq(HIGH-LOW) + vlq(PARENT_COUNT) + vlq(VLQ, PARENTS)
// ``` // ```
// //
// The reason HIGH is not stored in VLQ is because it's used by range lookup, // The reason HIGH is not stored in VLQ is because it's used by range lookup,