From a603792a70e5e5cf1083324030a71b4403fcbb94 Mon Sep 17 00:00:00 2001 From: Shane Madden Date: Mon, 8 Jan 2024 21:32:20 -0700 Subject: [PATCH] Fix doc test --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 82df1c35..35a68c5f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -128,7 +128,7 @@ pub use crate::{constants::*, enums::*, js_collections::*, local::*, objects::*, /// use js_sys::{JsString, Reflect}; /// use screeps::{game, prelude::*, Creep}; /// -/// let c = game::creeps().get(String::from("Bob")).unwrap(); +/// let c = game::creeps().get("Bob".into()).unwrap(); /// /// // `HasId` trait brought in from prelude /// let id = c.try_id().unwrap();