(doc) fix RST formatting of has_interface_with code examples