doc/examples: properly close input in metadata.