In what follows, $C$ will be a projective, geometrically regular, geometrically integral curve over a field $k$, and $\mathcal{L}$ is an invertible sheaf on $C$.
$19.2.A.$ EXERCISE. Suppose $\mathcal{L}$ is a degree $2g - 2$ invertible sheaf. Show that it has $g - 1$ or $g$ sections, and it has $g$ sections if and only if $\mathcal{L}\cong \omega_C$.
What does it mean $\mathcal{L}$ to have $g-1$ or $g$ sections?
Is it $h^{0}(C, \mathcal{L})= g-1$ or $g$? Would it be this?
Because by applying Riemann-Roch directly, we get
$h^0(C, \mathcal{L}) - h^1(C, \mathcal{L})= \text{deg} \mathcal{L} -g+1= g-1$.
But what about $h^1(C, \mathcal{L})$?