Skip to content

Commit bd9e602

Browse files
committed
Fix swap doc test
1 parent 9daa29c commit bd9e602

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/client.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,15 +357,15 @@ impl Client {
357357
/// let task = client
358358
/// .swap_indexes([&SwapIndexes {
359359
/// indexes: (
360-
/// "test_swapping_two_indexes_1".to_string(),
361-
/// "test_swapping_two_indexes_2".to_string(),
360+
/// "swap_index_1".to_string(),
361+
/// "swap_index_2".to_string(),
362362
/// ),
363363
/// }])
364364
/// .await
365365
/// .unwrap();
366366
///
367-
/// # client.index("task_index_1").delete().await.unwrap().wait_for_completion(&client, None, None).await.unwrap();
368-
/// # client.index("task_index_2").delete().await.unwrap().wait_for_completion(&client, None, None).await.unwrap();
367+
/// # client.index("swap_index_1").delete().await.unwrap().wait_for_completion(&client, None, None).await.unwrap();
368+
/// # client.index("swap_index_2").delete().await.unwrap().wait_for_completion(&client, None, None).await.unwrap();
369369
/// # });
370370
/// ```
371371
pub async fn swap_indexes(

0 commit comments

Comments
 (0)