Skip to content

Commit

Permalink
Fixed a bunch of typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
secret-playfair-rust committed Jul 19, 2023
1 parent d95e6bc commit 9e3d17d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/algebra/complex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ impl<T: Ring> MulAssign for Complex<T> {
}

#[test]
fn test_mul_assign_for_comples_ints() {
fn test_mul_assign_for_complex_ints() {
let mut a = Complex::new(1, 2);
a *= a;
assert_eq!(a, Complex::new(-3, 4));
Expand Down
4 changes: 2 additions & 2 deletions src/optimize/differential_evolution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ where
"Invalid differential weight"
);

// Create initial candidatre set
// Create initial candidate set
let mut population = (0..population_size)
.map(|_| from_fn(|i| rng.gen_range(bounds[i].0..bounds[i].1)))
.collect::<Box<[[T; N]]>>();
Expand Down Expand Up @@ -99,7 +99,7 @@ where
}
});

// If the candidate is bettern than population[i], replace
// If the candidate is better than population[i], replace
if compare_candidates(&x, &population[i]) {
population[i] = x;
}
Expand Down

0 comments on commit 9e3d17d

Please sign in to comment.