Skip to content

Commit 7676dc2

Browse files
committed
Add more constraints in comment
1 parent 0b93ac3 commit 7676dc2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gix-object/src/tree/mod.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,11 @@ impl Ord for EntryRef<'_> {
250250
}
251251

252252
/// TODO
253-
/// Keep in mind that the path separator always is `/`, independent of the platform.
253+
/// Keep the following constraints in mind:
254+
///
255+
/// - The path separator always is `/`, independent of the platform.
256+
/// - Only normal components are allowed.
257+
/// - This is always represented as a bunch of bytes.
254258
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
255259
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
256260
pub struct RepositoryPathPuf {

0 commit comments

Comments
 (0)