Skip to content

Commit

Permalink
count: added comment to justify magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Sep 5, 2024
1 parent 12db739 commit 5241e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/count.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ fn count_input(conf: &Config, count_delims_mode: CountDelimsMode) -> CliResult<(
.try_reserve(if use_index_count {
count as usize
} else {
1_000
1_000 // reasonable default to minimize reallocations
})
.map_err(|e| CliError::OutOfMemory(e.to_string()))?;

Expand Down

0 comments on commit 5241e39

Please sign in to comment.