Skip to content

Commit 5fa4485

Browse files
committed
docs: Fix documentation of SupportedOperations::WRITE_PACK
1 parent 2f02260 commit 5fa4485

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/odb_backend.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,9 @@ pub trait OdbBackend: Sized {
336336
bitflags! {
337337
/// Supported operations for a backend.
338338
pub struct SupportedOperations: u32 {
339-
// NOTE: The names are taken from the trait method names, but the order is taken from the
340-
// fields of git_odb_backend.
339+
// NOTE: The names are mostly taken from the trait method names, but the order of the flags
340+
// is taken from the fields of git_odb_backend.
341+
// Essentially, choose a name that is tasteful.
341342
/// The backend supports the [`OdbBackend::read`] method.
342343
const READ = 1;
343344
/// The backend supports the [`OdbBackend::read_prefix`] method.
@@ -358,7 +359,7 @@ bitflags! {
358359
const REFRESH = 1 << 7;
359360
/// The backend supports the [`OdbBackend::foreach`] method.
360361
const FOREACH = 1 << 8;
361-
/// The backend supports the [`OdbBackend::write_pack`] method.
362+
/// The backend supports the [`OdbBackend::open_writepack`] method.
362363
const WRITE_PACK = 1 << 9;
363364
/// The backend supports the [`OdbBackend::write_multipack_index`] method.
364365
const WRITE_MULTIPACK_INDEX = 1 << 10;

0 commit comments

Comments
 (0)