@@ -60,7 +60,7 @@ pub struct RepoBuilder<'cb> {
60
60
61
61
/// Type of callback passed to `RepoBuilder::remote_create`.
62
62
///
63
- /// The second and third arguments are the remote's name and the remote's url .
63
+ /// The second and third arguments are the remote's name and the remote's URL .
64
64
pub type RemoteCreate < ' cb > =
65
65
dyn for < ' a > FnMut ( & ' a Repository , & str , & str ) -> Result < Remote < ' a > , Error > + ' cb ;
66
66
@@ -89,7 +89,7 @@ pub struct CheckoutBuilder<'cb> {
89
89
90
90
/// Checkout progress notification callback.
91
91
///
92
- /// The first argument is the path for the notification, the next is the numver
92
+ /// The first argument is the path for the notification, the next is the number
93
93
/// of completed steps so far, and the final is the total number of steps.
94
94
pub type Progress < ' a > = dyn FnMut ( Option < & Path > , usize , usize ) + ' a ;
95
95
@@ -121,10 +121,10 @@ pub enum CloneLocal {
121
121
/// Auto-detect (default)
122
122
///
123
123
/// Here libgit2 will bypass the git-aware transport for local paths, but
124
- /// use a normal fetch for `file://` urls .
124
+ /// use a normal fetch for `file://` URLs .
125
125
Auto = raw:: GIT_CLONE_LOCAL_AUTO as isize ,
126
126
127
- /// Bypass the git-aware transport even for `file://` urls .
127
+ /// Bypass the git-aware transport even for `file://` URLs .
128
128
Local = raw:: GIT_CLONE_LOCAL as isize ,
129
129
130
130
/// Never bypass the git-aware transport
@@ -230,7 +230,7 @@ impl<'cb> RepoBuilder<'cb> {
230
230
231
231
/// Clone a remote repository.
232
232
///
233
- /// This will use the options configured so far to clone the specified url
233
+ /// This will use the options configured so far to clone the specified URL
234
234
/// into the specified local path.
235
235
pub fn clone ( & mut self , url : & str , into : & Path ) -> Result < Repository , Error > {
236
236
let mut opts: raw:: git_clone_options = unsafe { mem:: zeroed ( ) } ;
@@ -354,7 +354,7 @@ impl<'cb> CheckoutBuilder<'cb> {
354
354
}
355
355
356
356
/// Indicate that the checkout should be performed safely, allowing new
357
- /// files to be created but not overwriting extisting files or changes.
357
+ /// files to be created but not overwriting existing files or changes.
358
358
///
359
359
/// This is the default.
360
360
pub fn safe ( & mut self ) -> & mut CheckoutBuilder < ' cb > {
0 commit comments