summaryrefslogtreecommitdiffstats
path: root/src/value.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.rs')
-rw-r--r--src/value.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/value.rs b/src/value.rs
index 177acf7..602b40a 100644
--- a/src/value.rs
+++ b/src/value.rs
@@ -286,9 +286,9 @@ impl Value {
}
}
- /// Returns `self` into a str, if possible.
+ /// Returns `self` into a string, if possible.
// FIXME: Should this not be `try_into_*` ?
- pub fn into_str(self) -> Result<String> {
+ pub fn into_string(self) -> Result<String> {
match self.kind {
ValueKind::String(value) => Ok(value),