Skip to content

Commit 71115e9

Browse files
committed
Fix incorrect method name in Branch doc.
There is no `unwrap`. The method is called `into_reference`.
1 parent 718799c commit 71115e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/branch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use util::Binding;
99
/// A structure to represent a git [branch][1]
1010
///
1111
/// A branch is currently just a wrapper to an underlying `Reference`. The
12-
/// reference can be accessed through the `get` and `unwrap` methods.
12+
/// reference can be accessed through the `get` and `into_reference` methods.
1313
///
1414
/// [1]: http://git-scm.com/book/en/Git-Branching-What-a-Branch-Is
1515
pub struct Branch<'repo> {

0 commit comments

Comments
 (0)