Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/cargo-test-support/src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,14 @@ impl RegistryBuilder {
self
}

/// Sets whether or not to initialize as an alternative registry.
/// Initializes as an alternative registry with the given name.
#[must_use]
pub fn alternative_named(mut self, alt: &str) -> Self {
self.alternative = Some(alt.to_string());
self
}

/// Sets whether or not to initialize as an alternative registry.
/// Initializes as an alternative registry named "alternative".
#[must_use]
pub fn alternative(self) -> Self {
self.alternative_named("alternative")
Expand Down