Skip to content

Commit

Permalink
Update src/combined/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Ænжej Theodorko <andy.theodorko@gmail.com>
  • Loading branch information
jqnatividad and Ap3lsin4k committed Jan 4, 2024
1 parent 1bbe2c4 commit 25888fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/combined/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub fn raw_detect(iquery: &InternalQuery) -> RawOutcome {
let alphabet_weight = calc_alphabet_weight(count);
let trigram_weight = 1.0 - alphabet_weight;

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

for lang in all_langs {
let a: f64 = alphabet_scores
Expand Down

0 comments on commit 25888fe

Please sign in to comment.