summaryrefslogtreecommitdiff
path: root/src/library/utility.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/utility.rs')
-rw-r--r--src/library/utility.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/library/utility.rs b/src/library/utility.rs
index b2435e8a..4e4632c4 100644
--- a/src/library/utility.rs
+++ b/src/library/utility.rs
@@ -1,3 +1,5 @@
+//! Computational utility functions.
+
use std::cmp::Ordering;
use std::str::FromStr;
@@ -44,7 +46,7 @@ pub fn join(_: &mut EvalContext, args: &mut Args) -> TypResult<Value> {
Ok(result)
}
-/// `int`: Try to convert a value to a integer.
+/// `int`: Convert a value to a integer.
pub fn int(_: &mut EvalContext, args: &mut Args) -> TypResult<Value> {
let Spanned { v, span } = args.expect("value")?;
Ok(Value::Int(match v {
@@ -59,7 +61,7 @@ pub fn int(_: &mut EvalContext, args: &mut Args) -> TypResult<Value> {
}))
}
-/// `float`: Try to convert a value to a float.
+/// `float`: Convert a value to a float.
pub fn float(_: &mut EvalContext, args: &mut Args) -> TypResult<Value> {
let Spanned { v, span } = args.expect("value")?;
Ok(Value::Float(match v {