Skip to content

Conversation

@jschnelder
Copy link

Adds a missing example showing how to use TDisplay trait directly.

The documentation already shows calling .display() as a method, but doesn't demonstrate the trait usage pattern TDisplay::display(value).

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Collaborator

@orizi orizi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @jschnelder)


docs/reference/src/components/cairo/modules/language_constructs/pages/method-calls.adoc line 33 at r1 (raw file):

fn bar<T: impl TDisplay: Display<T>>(value: T) {
    let a = TDisplay::display(value);

how is this more complete? close PR.

@orizi
Copy link
Collaborator

orizi commented Dec 22, 2025

No response.

Closing.

@orizi orizi closed this Dec 22, 2025
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.

3 participants