Skip to content

Commit 25888fe

Browse files
Update src/combined/mod.rs
Co-authored-by: Ænжej Theodorko <andy.theodorko@gmail.com>
1 parent 1bbe2c4 commit 25888fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/combined/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub fn raw_detect(iquery: &InternalQuery) -> RawOutcome {
5151
let alphabet_weight = calc_alphabet_weight(count);
5252
let trigram_weight = 1.0 - alphabet_weight;
5353

54-
let mut scores = Vec::with_capacity(alphabet_scores.len() + trigram_scores.len());
54+
let mut scores = Vec::with_capacity(all_langs.len());
5555

5656
for lang in all_langs {
5757
let a: f64 = alphabet_scores

0 commit comments

Comments
 (0)