Skip to content

Commit f1edf75

Browse files
committed
docs: use log.total_logs in event export example
Replace hardcoded '1' with log.total_logs in the Event Export Example to correctly handle multi-log BBL files, making it consistent with the Complete Export Example.
1 parent a11af84 commit f1edf75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CRATE_USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ fn main() -> anyhow::Result<()> {
167167
export_to_event(
168168
Path::new("flight.BBL"),
169169
0, // log index
170-
1, // total_logs
170+
log.total_logs,
171171
&log.event_frames,
172172
&export_opts
173173
)?;

0 commit comments

Comments
 (0)