@@ -1001,7 +1001,7 @@ fn print_handle_event_defn(out: &mut Indenter, items: &[GenItem]) {
10011001}
10021002
10031003const CONNECT_DOCSTRING : & [ & str ] = & [
1004- "/// Connect to a database named `db_name` accessible over the internet at the URI `host `." ,
1004+ "/// Connect to a database named `db_name` accessible over the internet at the URI `spacetimedb_uri `." ,
10051005 "///" ,
10061006 "/// If `credentials` are supplied, they will be passed to the new connection to" ,
10071007 "/// identify and authenticate the user. Otherwise, a set of `Credentials` will be" ,
@@ -1017,17 +1017,17 @@ fn print_connect_docstring(out: &mut Indenter) {
10171017fn print_connect_defn ( out : & mut Indenter ) {
10181018 print_connect_docstring ( out) ;
10191019 out. delimited_block (
1020- "pub fn connect<Host>(host: Host , db_name: &str, credentials: Option<Credentials>) -> Result<()>
1020+ "pub fn connect<IntoUri>(spacetimedb_uri: IntoUri , db_name: &str, credentials: Option<Credentials>) -> Result<()>
10211021where
1022- \t Host : TryInto<spacetimedb_sdk::http::Uri>,
1023- \t <Host as TryInto<spacetimedb_sdk::http::Uri>>::Error: std::error::Error + Send + Sync + 'static,
1022+ \t IntoUri : TryInto<spacetimedb_sdk::http::Uri>,
1023+ \t <IntoUri as TryInto<spacetimedb_sdk::http::Uri>>::Error: std::error::Error + Send + Sync + 'static,
10241024{" ,
10251025 |out| out. delimited_block (
10261026 "with_connection_mut(|connection| {" ,
10271027 |out| {
10281028 writeln ! (
10291029 out,
1030- "connection.connect(host , db_name, credentials, handle_table_update, handle_resubscribe, invoke_row_callbacks, handle_event)?;"
1030+ "connection.connect(spacetimedb_uri , db_name, credentials, handle_table_update, handle_resubscribe, invoke_row_callbacks, handle_event)?;"
10311031 ) . unwrap ( ) ;
10321032 writeln ! ( out, "Ok(())" ) . unwrap ( ) ;
10331033 } ,
0 commit comments