Skip to content

Commit 7e9187e

Browse files
committed
docs(sdk): Fix the sliding sync builder example
1 parent 0659016 commit 7e9187e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/matrix-sdk/src/sliding_sync.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1089,9 +1089,10 @@ impl SlidingSync {
10891089
/// # block_on(async {
10901090
/// # let homeserver = Url::parse("http://example.com")?;
10911091
/// let client = Client::new(homeserver).await?;
1092-
/// let sliding_sync = client.sliding_sync().default_with_fullsync().build()?;
1092+
/// let sliding_sync =
1093+
/// client.sliding_sync().await.add_fullsync_view().build().await?;
10931094
///
1094-
/// # })
1095+
/// # anyhow::Ok(()) });
10951096
/// ```
10961097
#[derive(Clone, Debug, Builder)]
10971098
#[builder(build_fn(name = "finish_build"), pattern = "owned", derive(Clone, Debug))]

0 commit comments

Comments
 (0)