Kubrick created ending for ‘The Shining" at the very last minute

Apparently the ending that was chosen, was created by Kubrick at, “the last possible moment.”