Skip to content

Commit

Permalink
Fix doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
shanemadden committed Jan 9, 2024
1 parent afb6024 commit a603792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a603792

Please sign in to comment.