summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
Diffstat (limited to 'src/library')
-rw-r--r--src/library/utility.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/utility.rs b/src/library/utility.rs
index 19dfc3ec..d757a7f9 100644
--- a/src/library/utility.rs
+++ b/src/library/utility.rs
@@ -12,7 +12,7 @@ pub fn type_(_: &mut EvalContext, args: &mut Arguments) -> TypResult<Value> {
/// `repr`: The string representation of a value.
pub fn repr(_: &mut EvalContext, args: &mut Arguments) -> TypResult<Value> {
- Ok(args.expect::<Value>("value")?.to_string().into())
+ Ok(args.expect::<Value>("value")?.repr().into())
}
/// `join`: Join a sequence of values, optionally interspersing it with another