1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-20 03:37:47 +00:00

Fix EXL doc test failures, and one typo

This commit is contained in:
Joshua Goins 2022-08-06 18:03:00 -04:00
parent 287d807f01
commit 184e794e26

View file

@ -44,10 +44,16 @@ impl EXL {
///
/// # Example
///
/// ```should_panic
/// ```
/// # use std::fs::read;
/// # use std::path::PathBuf;
/// # use physis::exl::EXL;
/// let exl = EXL::from_existing("root.exl").unwrap();
/// exl.contains("Achivements");
/// # let mut d = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
/// # d.push("resources/tests");
/// # d.push("test.exl");
/// # let exl_file = read(d).unwrap();
/// let exl = EXL::from_existing(&exl_file).unwrap();
/// exl.contains("Foo");
/// ```
pub fn contains(&self, key: &str) -> bool {
self.entries.contains_key(key)