The code is written incorrectly, and relies on undefined behavior.
The correct code would read
float plot(vec2 st) { return 1.0 - smoothstep(0.0, 0.02, abs(st.y - st.x)); }