Skip to content

Comments

Use surface syntax in type state diagrams#3102

Merged
gribozavr merged 1 commit intomainfrom
idiomatic-diagrams
Feb 20, 2026
Merged

Use surface syntax in type state diagrams#3102
gribozavr merged 1 commit intomainfrom
idiomatic-diagrams

Conversation

@hurryabit
Copy link
Collaborator

For some reason the diagrams in the section for the type state pattern do not use Rust's surface syntax but rather spell
Serializer<Struct<S>> as Serializer [ Struct [ S ] ]. I guess this is because the < and > are somewhat tricky in bob diagrams.

However, this can be fixed by quoting phrases containing these tricky symbols. This is what we do here. This also requires a little realigning of arrows in order to keep the overall visual appearance of the diagrams.

For some reason the diagrams in the section for the type state pattern
do not use Rust's surface syntax but rather spell
`Serializer<Struct<S>>` as `Serializer [ Struct [ S ] ]`. I guess this
is because the `<` and `>` are somewhat tricky in bob diagrams.

However, this can be fixed by quoting phrases containing these tricky
symbols. This is what we do here. This also requires a little
realigning of arrows in order to keep the overall visual appearance of
the diagrams.
@hurryabit hurryabit requested a review from gribozavr February 20, 2026 14:58
@gribozavr gribozavr merged commit 2282162 into main Feb 20, 2026
40 checks passed
@gribozavr gribozavr deleted the idiomatic-diagrams branch February 20, 2026 17:22
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