We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bbe2c4 commit 25888feCopy full SHA for 25888fe
src/combined/mod.rs
@@ -51,7 +51,7 @@ pub fn raw_detect(iquery: &InternalQuery) -> RawOutcome {
51
let alphabet_weight = calc_alphabet_weight(count);
52
let trigram_weight = 1.0 - alphabet_weight;
53
54
- let mut scores = Vec::with_capacity(alphabet_scores.len() + trigram_scores.len());
+ let mut scores = Vec::with_capacity(all_langs.len());
55
56
for lang in all_langs {
57
let a: f64 = alphabet_scores
0 commit comments