We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d6f4560 + 61454c6 commit 8c8138cCopy full SHA for 8c8138c
src/tree.rs
@@ -199,7 +199,7 @@ impl<'repo> Tree<'repo> {
199
unsafe { &*(self as *const _ as *const Object<'repo>) }
200
}
201
202
- /// Consumes Commit to be returned as an `Object`
+ /// Consumes this Tree to be returned as an `Object`
203
pub fn into_object(self) -> Object<'repo> {
204
assert_eq!(mem::size_of_val(&self), mem::size_of::<Object<'_>>());
205
unsafe { mem::transmute(self) }
0 commit comments