radicle: fix `parse_ref_*` documentation
The `parse_ref` and `parse_ref_namespaced` documentation used 4 space indentation for the reference names. Unfortunately, `cargo test` attempts to interpret this as code. Use triple-backtick code fencing, with `text` and `no_run`, instead.
This commit is contained in:
parent
ee0d19f2eb
commit
62d000f7cb
|
|
@ -446,7 +446,9 @@ pub fn remote_refs(url: &Url) -> Result<RandomMap<RemoteId, Refs>, ListRefsError
|
||||||
/// e.g. in the reference below, the segment is
|
/// e.g. in the reference below, the segment is
|
||||||
/// `z6MkvUJtYD9dHDJfpevWRT98mzDDpdAtmUjwyDSkyqksUr7C`:
|
/// `z6MkvUJtYD9dHDJfpevWRT98mzDDpdAtmUjwyDSkyqksUr7C`:
|
||||||
///
|
///
|
||||||
/// refs/namespaces/z6MkvUJtYD9dHDJfpevWRT98mzDDpdAtmUjwyDSkyqksUr7C/refs/heads/main
|
/// ```text, no_run
|
||||||
|
/// refs/namespaces/z6MkvUJtYD9dHDJfpevWRT98mzDDpdAtmUjwyDSkyqksUr7C/refs/heads/main
|
||||||
|
/// ```
|
||||||
///
|
///
|
||||||
/// The `T` can be specified when calling the function. For example, if you
|
/// The `T` can be specified when calling the function. For example, if you
|
||||||
/// wanted to parse the namespace as a `PublicKey`, then you would the function
|
/// wanted to parse the namespace as a `PublicKey`, then you would the function
|
||||||
|
|
@ -473,7 +475,9 @@ where
|
||||||
/// e.g. in the reference below, the segment is
|
/// e.g. in the reference below, the segment is
|
||||||
/// `z6MkvUJtYD9dHDJfpevWRT98mzDDpdAtmUjwyDSkyqksUr7C`:
|
/// `z6MkvUJtYD9dHDJfpevWRT98mzDDpdAtmUjwyDSkyqksUr7C`:
|
||||||
///
|
///
|
||||||
/// refs/namespaces/z6MkvUJtYD9dHDJfpevWRT98mzDDpdAtmUjwyDSkyqksUr7C/refs/heads/main
|
/// ```text, no_run
|
||||||
|
/// refs/namespaces/z6MkvUJtYD9dHDJfpevWRT98mzDDpdAtmUjwyDSkyqksUr7C/refs/heads/main
|
||||||
|
/// ```
|
||||||
///
|
///
|
||||||
/// The `T` can be specified when calling the function. For example, if you
|
/// The `T` can be specified when calling the function. For example, if you
|
||||||
/// wanted to parse the namespace as a `PublicKey`, then you would the function
|
/// wanted to parse the namespace as a `PublicKey`, then you would the function
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue