From 71115e9229f23156db42fde09086ee2664c89168 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Fri, 26 Apr 2019 11:23:56 -0700 Subject: [PATCH] Fix incorrect method name in Branch doc. There is no `unwrap`. The method is called `into_reference`. --- src/branch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/branch.rs b/src/branch.rs index 3f035ed0d3..9f1e523c0d 100644 --- a/src/branch.rs +++ b/src/branch.rs @@ -9,7 +9,7 @@ use util::Binding; /// A structure to represent a git [branch][1] /// /// A branch is currently just a wrapper to an underlying `Reference`. The -/// reference can be accessed through the `get` and `unwrap` methods. +/// reference can be accessed through the `get` and `into_reference` methods. /// /// [1]: http://git-scm.com/book/en/Git-Branching-What-a-Branch-Is pub struct Branch<'repo> {