Lemma 18.27.2. Let $(\mathcal{C}, \mathcal{O})$ be a ringed site. Let $\mathcal{F}, \mathcal{G}$ be sheaves of $\mathcal{O}$-modules. Then formation of $\mathop{\mathcal{H}\! \mathit{om}}\nolimits _\mathcal {O}(\mathcal{F}, \mathcal{G})$ commutes with restriction to $U$ for $U \in \mathop{\mathrm{Ob}}\nolimits (\mathcal{C})$.

Proof. Immediate from the definition. $\square$

In your comment you can use Markdown and LaTeX style mathematics (enclose it like $\pi$). A preview option is available if you wish to see how it works out (just click on the eye in the toolbar).