Corollary (regular rational function on irreducible projective variety is constant)
Let $X$ be an irreducible projective variety.
If $f\in k(X)$ is a rational function which is regular at all points, then $f$ is constant, i.e $$ \begin{align*} \bigcap_{x\in X} O_{X,x} = k. \end{align*} $$
Compare with the affine case.