Why this happens
Flowchart arrows need two dashes before the arrowhead: -->. A single dash followed by > isn't a recognized token, so the parser stops right after consuming the first -.
This is an easy typo to make coming from other diagram-as-code tools (Graphviz uses ->) or from muscle memory typing regular arrows.
How to fix it
Use --> for a standard flowchart arrow, -.-> for a dotted arrow, or ==> for a thick arrow. Sequence diagrams have their own arrow set (->>, -->>, -x) that's unrelated to flowchart arrows -- don't mix the two.