Z (close path)

"Z" closes the path. The line returns to the last "M" element in the path.

You can see what happens in the following example if you toggle the "Z" checkbox from the "Config" area.