We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af465ec commit 3e920f2Copy full SHA for 3e920f2
crates/cargo-test-support/src/registry.rs
@@ -282,14 +282,14 @@ impl RegistryBuilder {
282
self
283
}
284
285
- /// Sets whether or not to initialize as an alternative registry.
+ /// Initializes as an alternative registry with the given name.
286
#[must_use]
287
pub fn alternative_named(mut self, alt: &str) -> Self {
288
self.alternative = Some(alt.to_string());
289
290
291
292
+ /// Initializes as an alternative registry named "alternative".
293
294
pub fn alternative(self) -> Self {
295
self.alternative_named("alternative")
0 commit comments