summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/foundations
diff options
context:
space:
mode:
authorRobin <mewmew@users.noreply.github.com>2025-07-01 13:04:31 +0200
committerGitHub <noreply@github.com>2025-07-01 11:04:31 +0000
commit30ddc4a7ca38ea41d9184cec6eee732307c80b33 (patch)
tree09b091c0ad152d5e2c44b576cee8069ab5677d48 /crates/typst-library/src/foundations
parentd978f8c33a869b52d2b38b20127bfbda635e1b42 (diff)
Fix typos in calc module docs (#6535)
Diffstat (limited to 'crates/typst-library/src/foundations')
-rw-r--r--crates/typst-library/src/foundations/calc.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/typst-library/src/foundations/calc.rs b/crates/typst-library/src/foundations/calc.rs
index 7f481a23..1fe1ff1f 100644
--- a/crates/typst-library/src/foundations/calc.rs
+++ b/crates/typst-library/src/foundations/calc.rs
@@ -207,9 +207,9 @@ pub fn sqrt(
/// ```
#[func]
pub fn root(
- /// The expression to take the root of
+ /// The expression to take the root of.
radicand: f64,
- /// Which root of the radicand to take
+ /// Which root of the radicand to take.
index: Spanned<i64>,
) -> SourceResult<f64> {
if index.v == 0 {
@@ -317,7 +317,7 @@ pub fn asin(
/// ```
#[func(title = "Arccosine")]
pub fn acos(
- /// The number whose arcsine to calculate. Must be between -1 and 1.
+ /// The number whose arccosine to calculate. Must be between -1 and 1.
value: Spanned<Num>,
) -> SourceResult<Angle> {
let val = value.v.float();
@@ -387,7 +387,7 @@ pub fn cosh(
value.cosh()
}
-/// Calculates the hyperbolic tangent of an hyperbolic angle.
+/// Calculates the hyperbolic tangent of a hyperbolic angle.
///
/// ```example
/// #calc.tanh(0) \