Skip to content

Commit 8501163

Browse files
committed
fix: digest docs
1 parent 4718c8f commit 8501163

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/digest/mod.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
//! # Digest
22
//!
3-
//! Parsers for digest strings according to either the [OCI image spec][image-spec]
4-
//! or the grammar used by [`distribution/reference`][ref].
3+
//! Parsers for digest strings according to either the [OCI image spec](https://github.com/opencontainers/image-spec/blob/v1.0.2/descriptor.md#digests)
4+
//! or the grammar used by [`distribution/reference`](https://github.com/distribution/reference/blob/v0.5.0/reference.go#L20-L24).
55
//! These grammars differ slightly:
66
77
// {{{sh
8-
// echo; cat ../../grammars/digest.diff | sed 's#^#//!#g'; printf '\n// '
8+
// echo; cat ../../grammars/digest.diff | sed 's#^#//!#g';
9+
// printf '//! ```\n\n// '
910
// }}}{{{out skip=2
1011

1112
//!```diff
@@ -21,8 +22,6 @@
2122
//!+encoded ::= [a-zA-Z0-9=_-]+
2223
2324
// }}}
24-
//! [image-spec]: https://github.com/opencontainers/image-spec/blob/v1.0.2/descriptor.md#digests
25-
//! [ref]: https://github.com/distribution/reference/blob/v0.5.0/reference.go#L24
2625

2726
pub mod algorithm;
2827
pub mod encoded;

0 commit comments

Comments
 (0)