Changed name of function
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
pub fn split_words(var: &crate::EnvVar) -> Result<Vec<String>, std::io::Error> {
|
||||
/// Take the Environment variable and delimitize it. If the value has a delimiter,
|
||||
/// extract it into some strings
|
||||
pub fn delimitize(var: &crate::EnvVar) -> Result<Vec<String>, std::io::Error> {
|
||||
if var.has_delimiter {
|
||||
Ok(var.value.split(var.delimiter).map(|c| c.parse::<String>().unwrap()).collect())
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user