Skip to content

Commit 4a0170e

Browse files
committed
Fix doctest failure on indented ∫ in doc comment
Rustdoc treated the indented formula block as a Rust doctest, which failed with "unknown start of token: \u{222b}". Wrap the formulas in a `text` code fence so rustdoc renders them verbatim.
1 parent 1f976c3 commit 4a0170e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/functions/calculus_ast.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2889,8 +2889,10 @@ fn decompose_rational_coeff(coeff: &Expr) -> Option<(i128, i128)> {
28892889
/// `a = p/q` is rational, expressed in the form used by Mathematica's
28902890
/// `Integrate`:
28912891
///
2892-
/// ∫ ArcSin[a x] dx = x*ArcSin[a x] + Sqrt[q^2 - p^2 x^2] / p
2893-
/// ∫ ArcCos[a x] dx = x*ArcCos[a x] - Sqrt[q^2 - p^2 x^2] / p
2892+
/// ```text
2893+
/// ∫ ArcSin[a x] dx = x*ArcSin[a x] + Sqrt[q^2 - p^2 x^2] / p
2894+
/// ∫ ArcCos[a x] dx = x*ArcCos[a x] - Sqrt[q^2 - p^2 x^2] / p
2895+
/// ```
28942896
///
28952897
/// Requires `p != 0`. For `a = 1/q`, this collapses nicely to
28962898
/// `Sqrt[q^2 - x^2]`. For `a = p` (integer), it yields

0 commit comments

Comments
 (0)