Fixes a couple of typos that were noticed after the initial PR (#31543) got merged in. PR Close #31571