Skip to content

Commit ed458c0

Browse files
committed
add another doc-alias for a commonly used hash method
1 parent c79a7da commit ed458c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gix-hash/src/object_id.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ impl ObjectId {
123123

124124
/// Returns an instances whose bytes are all zero.
125125
#[inline]
126+
#[doc(alias = "zero", alias = "git2")]
126127
pub const fn null(kind: Kind) -> ObjectId {
127128
match kind {
128129
Kind::Sha1 => Self::null_sha1(),
@@ -131,6 +132,7 @@ impl ObjectId {
131132

132133
/// Returns `true` if this hash consists of all null bytes.
133134
#[inline]
135+
#[doc(alias = "is_zero", alias = "git2")]
134136
pub fn is_null(&self) -> bool {
135137
match self {
136138
ObjectId::Sha1(digest) => &digest[..] == oid::null_sha1().as_bytes(),

0 commit comments

Comments
 (0)