Skip to content

Commit acfd633

Browse files
committed
chore: cargo fmt
1 parent fece563 commit acfd633

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/repo.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2065,12 +2065,12 @@ impl Repository {
20652065

20662066
/// Updates files in the index and the working tree to match the content of
20672067
/// the commit pointed at by HEAD.
2068-
///
2068+
///
20692069
/// Make sure you're aware of the potentially confusing semantics of this function, as described
2070-
/// by the libgit2 documentation for the underlying libgit2 function:
2070+
/// by the libgit2 documentation for the underlying libgit2 function:
20712071
/// <https://libgit2.org/docs/reference/main/checkout/git_checkout_head.html>.
2072-
///
2073-
/// Notably, this should not be used for switching branches. For that you should checkout the target of the
2072+
///
2073+
/// Notably, this should not be used for switching branches. For that you should checkout the target of the
20742074
/// desired branch and then use [Repository::set_head] to update HEAD to point to the checked-out branch.
20752075
pub fn checkout_head(&self, opts: Option<&mut CheckoutBuilder<'_>>) -> Result<(), Error> {
20762076
unsafe {

0 commit comments

Comments
 (0)