diff --git a/src/lib.rs b/src/lib.rs index 066b43c0..188b00de 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,8 +19,7 @@ //! and no Javascript garbage collection happening for its memory space, //! allowing for faster execution of some types of workloads. Overall, the //! advantages and disadvantages of WebAssembly in Screeps are relatively small, -//! especially when compared to the relatively high 0.2ms cost of game -//! actions. +//! especially when compared to the relatively high 0.2ms cost of game actions. //! //! # Data Persistence //! diff --git a/src/local/cost_matrix.rs b/src/local/cost_matrix.rs index c4ac73d2..14311e60 100644 --- a/src/local/cost_matrix.rs +++ b/src/local/cost_matrix.rs @@ -11,7 +11,8 @@ use super::{linear_index_to_xy, xy_to_linear_index, Position, RoomXY, ROOM_AREA} /// A matrix of pathing costs for a room, stored in Rust memory. /// -/// Use [`CostMatrix`] if data stored in JavaScript memory is preferred. +/// Use [`CostMatrix`] if a reference to data stored in JavaScript memory is +/// preferred. #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] #[serde(transparent)] pub struct LocalCostMatrix { diff --git a/src/local/object_id.rs b/src/local/object_id.rs index 357275a5..e08014d4 100644 --- a/src/local/object_id.rs +++ b/src/local/object_id.rs @@ -21,12 +21,13 @@ pub use raw::*; /// Represents an Object ID and a type that the ID points to, stored in Rust /// memory. /// -/// Use [`JsObjectId`] If a reference stored in JavaScript memory is preferred. +/// Use [`JsObjectId`] if a reference stored in JavaScript memory is preferred. /// -/// Each object id in screeps is represented by an ID of up to 24 hexidemical -/// characters, which cannot change. This implementation takes advantage of that -/// by storing a packed representation in a `u128`, using 96 bits for the ID and -/// 32 bits for tracking the length of the ID string for reconstruction in JS. +/// Each object ID in Screeps: World is represented by an ID of up to 24 +/// hexidemical characters, which cannot change. This implementation takes +/// advantage of that by storing a packed representation in a `u128`, using 96 +/// bits for the ID and 32 bits for tracking the length of the ID string for +/// reconstruction in JS. /// /// # Conversion ///