Skip to content

Commit c441d94

Browse files
authored
docs: fix non-compiling Rust session-limits example (#2082)
The Rust tab of docs/features/session-limits.md called SessionConfig::new(), which does not exist -- SessionConfig is constructed via Default plus builder methods, so copying the example produced error[E0599]. Use SessionConfig::default() so the documented snippet compiles against the SDK it ships with. The neighboring resume example already uses the real ResumeSessionConfig::new(session_id) and is unchanged. Co-authored-by: examon <examon@users.noreply.github.com>
1 parent 2ab2aa5 commit c441d94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/features/session-limits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ let limits = SessionLimitsConfig {
131131

132132
let session = client
133133
.create_session(
134-
SessionConfig::new()
134+
SessionConfig::default()
135135
.approve_all_permissions()
136136
.with_session_limits(limits.clone()),
137137
)

0 commit comments

Comments
 (0)