fixup doc links

This commit is contained in:
Floris Bruynooghe
2023-02-14 13:27:15 +01:00
parent c379a4e5a7
commit d56e05a11a
4 changed files with 6 additions and 5 deletions

View File

@@ -242,8 +242,9 @@ impl<'a> BlobObject<'a> {
/// including the dot. E.g. "foo.txt" is returned as `("foo",
/// ".txt")` while "bar" is returned as `("bar", "")`.
///
/// The extension part will always be lowercased. Note that [`imex::transfer`] relies
/// on this for safety, if uppercase extensions are ever allowed it needs to be adapted.
/// The extension part will always be lowercased. Note that [`crate::imex::get_backup`]
/// relies on this for safety, if uppercase extensions are ever allowed it needs to be
/// adapted.
fn sanitise_name(name: &str) -> (String, String) {
let mut name = name.to_string();
for part in name.rsplit('/') {