Update stateDiagram.md

Add renamed composite as an example of composites with spaced names.
This commit is contained in:
Celil Buğra Karacan 2024-04-19 16:39:03 +03:00 committed by GitHub
parent 3809732e48
commit 8d9cb09261
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,6 +107,14 @@ stateDiagram-v2
[*] --> second [*] --> second
second --> [*] second --> [*]
} }
[*] --> NamedComposite
NamedComposite: Another Composite
state NamedComposite {
[*] --> namedSimple
namedSimple --> [*]
namedSimple: Another simple
}
``` ```
You can do this in several layers: You can do this in several layers: