Each next hop in the list contains the outgoing interface, and optionally the next-hop router’s IP address. When the next hop is another router, the next-hop entry contains the IP address of
the next-hop router.
These two sentences seem contradictory. The former says IP is optional, the latter says that IP is contained in the entry.
OK, I think it means that if the next hop is a router, the IP address of the router is in the entry, otherwise the IP address is not there. So it's optional.
Each next hop in the list contains the outgoing interface, and optionally the next-hop router’s IP address. When the next hop is another router, the next-hop entry contains the IP address of the next-hop router.
These two sentences seem contradictory. The former says IP is optional, the latter says that IP is contained in the entry.