[docs] Fix typos
[TableGen] Pull the increment of a variable out of an assert.The variable is only used by the assert so the code was finebefore, but it was flagged in PR47072.