fix typo `restirct` to `restrict`