diff --git a/src/interpreter/value/string.rs b/src/interpreter/value/string.rs index 2723328..a5b10fe 100644 --- a/src/interpreter/value/string.rs +++ b/src/interpreter/value/string.rs @@ -1,5 +1,8 @@ use std::{fmt::Display, ops::Deref, rc::Rc}; +/// A Wisp string type which can hold two variants: +/// - Borrowed (usually a reference to source code or built-in literal) +/// - Shared (Ref-counted pointer to [`str`]) #[derive(Debug, Clone)] pub enum Str<'a> { Borrowed(&'a str),