Skip to content

Commit

Permalink
Fix copypaste oopsies in Reference doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
emlun committed May 27, 2019
1 parent c29c88d commit 67093fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,15 @@ impl<'repo> Reference<'repo> {
/// Peel a reference to a commit
///
/// This method recursively peels the reference until it reaches
/// a blob.
/// a commit.
pub fn peel_to_commit(&self) -> Result<Commit<'repo>, Error> {
Ok(try!(self.peel(ObjectType::Commit)).cast_or_panic(ObjectType::Commit))
}

/// Peel a reference to a tree
///
/// This method recursively peels the reference until it reaches
/// a blob.
/// a tree.
pub fn peel_to_tree(&self) -> Result<Tree<'repo>, Error> {
Ok(try!(self.peel(ObjectType::Tree)).cast_or_panic(ObjectType::Tree))
}
Expand Down

0 comments on commit 67093fa

Please sign in to comment.