Skip to content

Commit b5c316e

Browse files
committed
fix docs
1 parent c32663e commit b5c316e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

git-protocol/src/fetch/delegate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub trait DelegateBlocking {
3838
/// Note that some arguments are preset based on typical use, and `features` are preset to maximize options.
3939
/// The `server` capabilities can be used to see which additional capabilities the server supports as per the handshake which happened prior.
4040
///
41-
/// If the delegate returns [`LsRefsAction::Skip`], no 'ls-refs` command is sent to the server.
41+
/// If the delegate returns [`ls_refs::Action::Skip`], no 'ls-refs` command is sent to the server.
4242
///
4343
/// Note that this is called only if we are using protocol version 2.
4444
fn prepare_ls_refs(

git-protocol/src/ls_refs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ mod error {
1515
}
1616
pub use error::Error;
1717

18-
/// What to do after [`DelegateBlocking::prepare_ls_refs`].
18+
/// What to do after preparing ls-refs in [ls_refs()][crate::ls_refs()].
1919
#[derive(PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone)]
2020
pub enum Action {
2121
/// Continue by sending a 'ls-refs' command.
2222
Continue,
2323
/// Skip 'ls-refs' entirely.
2424
///
25-
/// This is valid if the 'ref-in-want' capability is taken advantage of. The delegate must then send 'want-ref's in
26-
/// [`DelegateBlocking::negotiate`].
25+
/// This is useful if the `ref-in-want` capability is taken advantage of. When fetching, one must must then send
26+
/// `want-ref`s during the negotiation phase.
2727
Skip,
2828
}
2929

git-repository/src/env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::bstr::{BString, ByteVec};
66
/// Returns the name of the agent for identification towards a remote server as statically known when compiling the crate.
77
/// Suitable for both `git` servers and HTTP servers, and used unless configured otherwise.
88
///
9-
/// Note that it's meant to be used in conjunction with [`protocol::fetch::agent()`][crate::protocol::fetch::agent()] which
9+
/// Note that it's meant to be used in conjunction with [`protocol::agent()`][crate::protocol::agent()] which
1010
/// prepends `git/`.
1111
pub fn agent() -> &'static str {
1212
concat!("oxide-", env!("CARGO_PKG_VERSION"))

0 commit comments

Comments
 (0)