In Willard's General Topology, p66, section 9.14,
the author is trying to prove that $q(Y)$ is closed in $X +_{f} Y$.
$q$ is defined as the decomposition map of $X+Y$ onto $X +_{f} Y$ where f is a continuous function $f: A\subset X \rightarrow Y$.
$X +_{f} Y$ is the attaching of $X$ to $Y$ by $f$.
In the proof the author is stating:
Let $F$ be a closed subset of $Y$. Then $F$ is a closed subset of $X + Y$ and $F = q^{-1}[q(F)]$.
However, I don't see how this can hold. Is he confusing $q$ and $q|Y$ here? But even so I don't see the path.