summaryrefslogtreecommitdiff
path: root/library/src/math/root.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-06-06 21:13:59 +0200
committerLaurenz <laurmaedje@gmail.com>2023-06-06 22:06:16 +0200
commitfd417da04f7ca4b995de7f6510abafd3e9c31307 (patch)
tree3675529c75ca7363701ac8ea306de2cc1d3cbcb3 /library/src/math/root.rs
parent168bdf35bd773e67343c965cb473492cc5cae9e7 (diff)
Improve value casting infrastructure
Diffstat (limited to 'library/src/math/root.rs')
-rw-r--r--library/src/math/root.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/library/src/math/root.rs b/library/src/math/root.rs
index 05f3a2a7..d1c5f46a 100644
--- a/library/src/math/root.rs
+++ b/library/src/math/root.rs
@@ -9,13 +9,12 @@ use super::*;
///
/// Display: Square Root
/// Category: math
-/// Returns: content
#[func]
pub fn sqrt(
/// The expression to take the square root of.
radicand: Content,
-) -> Value {
- RootElem::new(radicand).pack().into()
+) -> Content {
+ RootElem::new(radicand).pack()
}
/// A general root.