How does WordPress format the url on a 301 when a trailing slash is missing?

How does WordPress format the url on a 301 when a trailing slash is missing?