update readme example

This commit is contained in:
Andy Weidenbaum 2021-06-15 07:55:12 +10:00
parent 1bb9236f7b
commit 738b5b150f

View File

@ -16,8 +16,8 @@ use rlua_searcher::{AddSearcher, Result};
use std::collections::HashMap;
fn main() {
let lume = read_lume_to_string();
let name = "lume".to_string();
let lume = Cow::from(read_lume_to_string());
let name = Cow::from("lume");
let mut map = HashMap::new();
map.insert(name, lume);