mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-07 23:44:53 -04:00
docs(sdk): Fix the sliding sync builder example
This commit is contained in:
@@ -1099,9 +1099,10 @@ impl SlidingSync {
|
||||
/// # block_on(async {
|
||||
/// # let homeserver = Url::parse("http://example.com")?;
|
||||
/// let client = Client::new(homeserver).await?;
|
||||
/// let sliding_sync = client.sliding_sync().default_with_fullsync().build()?;
|
||||
/// let sliding_sync =
|
||||
/// client.sliding_sync().await.add_fullsync_view().build().await?;
|
||||
///
|
||||
/// # })
|
||||
/// # anyhow::Ok(()) });
|
||||
/// ```
|
||||
#[derive(Clone, Debug, Builder)]
|
||||
#[builder(build_fn(name = "finish_build"), pattern = "owned", derive(Clone, Debug))]
|
||||
|
||||
Reference in New Issue
Block a user