Fix xmax typos in API docs

Just fix a couple typos I noticed while looking through the docs.