Skip to content

Commit e2f9e8a

Browse files
authored
style: remove duplicated the (#779)
chore: remove repetitive words Signed-off-by: friendlyping <[email protected]>
1 parent 28dda98 commit e2f9e8a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/graph/decremental_connectivity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::collections::HashSet;
44
/// Meaning deletion of an edge (u,v) and checking whether two vertecies are still connected.
55
///
66
/// # Complexity
7-
/// The preprocessing phase runs in O(n) time, where n is the the number of vertecies in the forest.
7+
/// The preprocessing phase runs in O(n) time, where n is the number of vertecies in the forest.
88
/// Deletion runs in O(log n) and checking for connectivity runs in O(1) time.
99
///
1010
/// # Sources

src/math/interest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub fn simple_interest(principal: f64, annual_rate: f64, years: f64) -> (f64, f6
1414

1515
// function to calculate compound interest compounded over periods or continuously
1616
pub fn compound_interest(principal: f64, annual_rate: f64, years: f64, period: Option<f64>) -> f64 {
17-
// checks if the the period is None type, if so calculates continuous compounding interest
17+
// checks if the period is None type, if so calculates continuous compounding interest
1818
let value = if period.is_none() {
1919
principal * E.powf(annual_rate * years)
2020
} else {

src/math/nthprime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Generate the nth prime number.
2-
// Algorithm is inspired by the the optimized version of the Sieve of Eratosthenes.
2+
// Algorithm is inspired by the optimized version of the Sieve of Eratosthenes.
33
pub fn nthprime(nth: u64) -> u64 {
44
let mut total_prime: u64 = 0;
55
let mut size_factor: u64 = 2;

0 commit comments

Comments
 (0)