diff --git a/src/js_collections.rs b/src/js_collections.rs index 309f1945..7e9ffca2 100644 --- a/src/js_collections.rs +++ b/src/js_collections.rs @@ -164,7 +164,7 @@ impl std::iter::ExactSizeIterator for OwnedArrayIter where T: JsCollection /// Represents a reference to an Object ID string in JavaScript memory, typed /// according to the object type Rust expects for the object after resolving. /// -/// If a value stored in Rust memory is preferred, use [`ObjectId`]; the +/// Use [`ObjectId`] if a value stored in Rust memory is preferred; the /// JavaScript representation can be harder to work with in Rust code due to /// lack of visibility on the underlying string and lack of most trait /// implementations, and consumes more memory, but is faster to resolve and may diff --git a/src/local/object_id.rs b/src/local/object_id.rs index e5f8f15f..357275a5 100644 --- a/src/local/object_id.rs +++ b/src/local/object_id.rs @@ -21,7 +21,7 @@ pub use raw::*; /// Represents an Object ID and a type that the ID points to, stored in Rust /// memory. /// -/// If a reference stored in JavaScript memory is preferred, use [`JsObjectId`]. +/// 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