From 89052f48e455494f65ab4dccd5e27a534baba937 Mon Sep 17 00:00:00 2001 From: asafmahlev Date: Wed, 17 Jan 2024 15:03:17 +0200 Subject: [PATCH] Fix connection string --- azure-kusto-data/src/connection_string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-kusto-data/src/connection_string.rs b/azure-kusto-data/src/connection_string.rs index 61511cc..5c6b033 100644 --- a/azure-kusto-data/src/connection_string.rs +++ b/azure-kusto-data/src/connection_string.rs @@ -775,7 +775,7 @@ impl ConnectionString { /// use std::sync::Arc; /// use azure_kusto_data::prelude::{ConnectionString, ConnectionStringAuth}; /// - /// let conn = ConnectionString::with_token_callback_auth("https://mycluster.kusto.windows.net", Arc::new(|resource_uri| resource_uri.to_string()), None); + /// let conn = ConnectionString::with_token_callback_auth("https://mycluster.kusto.windows.net", Arc::new(|scopes| scopes[0].to_string()), None); /// /// assert_eq!(conn.data_source, "https://mycluster.kusto.windows.net".to_string()); /// assert!(matches!(conn.auth, ConnectionStringAuth::TokenCallback { .. }));