This commit is contained in:
rzmk 2023-09-21 21:07:06 +00:00
parent 2e23b86596
commit 4eed7e25fa
4 changed files with 12 additions and 12 deletions

View file

@ -114,11 +114,11 @@
//!
//! Implementations of mathematical and technical concepts in Rust.
//!
//! ## Subjects
//! # Subjects
//!
//! The modules for currently supported subjects are:
//!
//! - [`pre_algebra`]
//! - [pre_algebra] - Various pre-algebra implementations including factor pairs, factors, multiples, and more.
//!
//! # Example
//!
@ -205,21 +205,21 @@
//! Great! We've successfully used the `ladderz` crate to get the factors and factor pairs of a positive integer in sorted order.
/// Various pre-algebra implementations including factor pairs, factors, multiples, and more.
///
///
/// # Example
///
///
/// ```rust
/// use ladderz::pre_algebra::get_factors;
///
///
/// fn main() {
/// let x: u32 = 10;
/// println!("The factors of {x} are {:?}.", get_factors(x));
/// }
/// ```
///
///
/// ```console
/// The factors of 10 are {1, 5, 2, 10}.
/// ```
///
///
</span><span class="kw">pub mod </span>pre_algebra;
</code></pre></div></section></main></body></html>

View file

@ -217,7 +217,7 @@
///
/// A factor pair is a pair of positive integers
/// `(a, b)` where `a` and `b` are both factors of `n` (i.e., `a * b == n`).
///
///
/// This function calculates and returns a `HashSet&lt;(u32, u32)&gt;` containing all unique factor pairs
/// of the input positive integer `n`.
///
@ -257,7 +257,7 @@
}
<span class="doccomment">/// Finds all factors of a positive integer `n`.
///
///
/// A factor of `n` is a positive integer `a` where
/// `n` is evenly divisible by `a` (i.e., `n % a == 0`).
///