summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnarchistHoneybun <74085528+AnarchistHoneybun@users.noreply.github.com>2024-07-06 15:10:12 +0530
committerGitHub <noreply@github.com>2024-07-06 09:40:12 +0000
commit82f13d9a38ae9b6486a4fe3c7503dc8d75bd39fa (patch)
tree2f4a3d50fc529952bd0567e98100e2a4bf2640f4
parent8c3002897a70ec8e06c4d2518549f6315e538184 (diff)
Reword docs for `math.cancel` (#4444)
-rw-r--r--crates/typst/src/math/cancel.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/crates/typst/src/math/cancel.rs b/crates/typst/src/math/cancel.rs
index 405b0351..ef07a1c8 100644
--- a/crates/typst/src/math/cancel.rs
+++ b/crates/typst/src/math/cancel.rs
@@ -65,13 +65,13 @@ pub struct CancelElem {
/// How much to rotate the cancel line.
///
+ /// - If given an angle, the line is rotated by that angle clockwise with
+ /// respect to the y-axis.
/// - If `{auto}`, the line assumes the default angle; that is, along the
- /// diagonal line of the content box.
- /// - If given an angle, the line is rotated by that angle clockwise w.r.t
- /// the y-axis.
- /// - If given a function `angle => angle`, the line is rotated by the angle
- /// returned by that function. The function receives the default angle as
- /// its input.
+ /// rising diagonal of the content box.
+ /// - If given a function `angle => angle`, the line is rotated, with
+ /// respect to the y-axis, by the angle returned by that function. The
+ /// function receives the default angle as its input.
///
/// ```example
/// >>> #set page(width: 140pt)