Skip to content

fix chained queue docs usage example - #1115

Open
KELO-R wants to merge 1 commit into
crossterm-rs:masterfrom
KELO-R:fix-lazy-execution-queue-documentation
Open

fix chained queue docs usage example#1115
KELO-R wants to merge 1 commit into
crossterm-rs:masterfrom
KELO-R:fix-lazy-execution-queue-documentation

Conversation

@KELO-R

@KELO-R KELO-R commented Aug 22, 2026

Copy link
Copy Markdown

Add ? to queue chained usage example

Based on signature of queue function
it returns a Result<&mut Self> not &mut Self,
so some sort of unwrapping is required to chain queue function calls,
furthermore the example with chained execute function features "?"

stdout.execute(Goto(5,5))?.execute(Clear(ClearType::All))

@KELO-R
KELO-R requested a review from TimonPost as a code owner August 22, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants