Skip to content

Commit 54e9107

Browse files
committed
fix(test): fix failing doctest
1 parent ca94243 commit 54e9107

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/soar-dl/src/platform.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ impl PlatformUrl {
149149
/// struct Item { id: u32 }
150150
///
151151
/// // Attempts fallback first, then primary with token from "API_TOKEN" if needed.
152-
/// let result: Result<Vec<Item>, _> = fetch_with_fallback("/api/items", "https://primary.example.com", "https://fallback.example.com", "API_TOKEN");
152+
/// let result: Result<Vec<Item>, _> = fetch_with_fallback("/api/items", "https://primary.example.com", "https://fallback.example.com", ["API_TOKEN", "API_TOKEN_FALLBACK"]);
153153
/// ```
154154
pub fn fetch_with_fallback<T>(
155155
path: &str,

0 commit comments

Comments
 (0)