summaryrefslogtreecommitdiff
path: root/library/src/compute
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/compute')
-rw-r--r--library/src/compute/calc.rs4
-rw-r--r--library/src/compute/construct.rs5
2 files changed, 5 insertions, 4 deletions
diff --git a/library/src/compute/calc.rs b/library/src/compute/calc.rs
index 84942e70..d8d577ad 100644
--- a/library/src/compute/calc.rs
+++ b/library/src/compute/calc.rs
@@ -143,7 +143,7 @@ pub fn pow(
///
/// ## Example { #example }
/// ```example
-/// #calc.exp(3)
+/// #calc.exp(1)
/// ```
///
/// Display: Exponential
@@ -479,7 +479,7 @@ pub fn log(
///
/// ## Example { #example }
/// ```example
-/// #calc.ln(100)
+/// #calc.ln(calc.e)
/// ```
///
/// Display: Natural Logarithm
diff --git a/library/src/compute/construct.rs b/library/src/compute/construct.rs
index 5d2d35ae..a81c6a96 100644
--- a/library/src/compute/construct.rs
+++ b/library/src/compute/construct.rs
@@ -183,7 +183,8 @@ cast! {
/// Create a new datetime.
///
/// You can specify the [datetime]($type/datetime) using a year, month, day,
-/// hour, minute, and second.
+/// hour, minute, and second. You can also get the current date with
+/// [`datetime.today`]($func/datetime.today).
///
/// ## Example
/// ```example
@@ -564,7 +565,7 @@ pub fn str_to_unicode(
/// #str.from-unicode(97)
/// ```
///
-/// Display: Sting From Unicode
+/// Display: String From Unicode
/// Category: construct
#[func]
pub fn str_from_unicode(