diff --git a/crates/cloud-local/src/lib.rs b/crates/cloud-local/src/lib.rs index b3cf5cbe9..715a87084 100644 --- a/crates/cloud-local/src/lib.rs +++ b/crates/cloud-local/src/lib.rs @@ -29,7 +29,7 @@ //! [`Job::Create`] name is one plain file name, not a path at all. Neither is //! an OS path string handed to `std::fs`. Confinement happens in two layers: //! -//! 1. [`confine_segment`] (every path segment) and [`confine_name`] (a +//! 1. `confine_segment` (every path segment) and `confine_name` (a //! `Create` name, stricter) reject `..`, `.`, an empty segment, an //! absolute form, and anything that is not exactly one //! [`std::path::Component::Normal`]. `confine_name` additionally refuses a @@ -41,8 +41,8 @@ //! not itself a path separator on any platform's filesystem, so //! `confine_segment` lets `list`, `read` and `write` keep such a name //! reachable instead of discovering it and then refusing to open it. -//! 2. [`open_root`] opens `root` as a [`cap_std::fs::Dir`] capability once per -//! job. Every [`list`], [`read`], [`write`] and [`create`] routes its +//! 2. `open_root` opens `root` as a [`cap_std::fs::Dir`] capability once per +//! job. Every `list`, `read`, `write` and `create` routes its //! already-segment-checked relative path through that one `Dir`, never //! through an absolute OS path built by this crate. `cap_std` resolves one //! component at a time against real, already-open directory handles, so a diff --git a/crates/cloud-ui/src/cloud/mod.rs b/crates/cloud-ui/src/cloud/mod.rs index 3844c4f8f..b1013a8ad 100644 --- a/crates/cloud-ui/src/cloud/mod.rs +++ b/crates/cloud-ui/src/cloud/mod.rs @@ -300,7 +300,7 @@ impl CloudFiles { /// The account badge's own strings, for a localized application that /// would rather translate them itself than through - /// [`CloudApp::tr`](crate::cloud::CloudApp::tr). + /// [`CloudApp::tr`]. pub fn account_menu_mut(&mut self) -> &mut crate::account::AccountMenu { &mut self.accounts } @@ -594,7 +594,7 @@ pub fn cancel_save_as(app: &mut A) { /// Save As: writes a new document into `folder` under `name`. /// -/// Acts on [`CloudFiles::save_as_target`] when the conflict modal's "Save as +/// Acts on `CloudFiles::save_as_target` when the conflict modal's "Save as /// a copy" set one, so the copy is made from the document that conflicted /// even if another tab is active by the time this runs. Otherwise, the /// active document, same as every other ordinary Save As. diff --git a/crates/cloud/src/lib.rs b/crates/cloud/src/lib.rs index 7f02dd468..1f4fe0930 100644 --- a/crates/cloud/src/lib.rs +++ b/crates/cloud/src/lib.rs @@ -56,7 +56,7 @@ pub trait Files { /// A byte range of one document. /// - /// Defaulted to a full [`read`] and a slice, so providers that have no + /// Defaulted to a full [`read`](Self::read) and a slice, so providers that have no /// ranged GET still satisfy the trait. A provider with real range support /// overrides this. fn read_range(&self, id: &str, offset: u64, length: u64) -> Result> {