Fixed typo in doc title

function --> function in @title. This typo recurred elsewhere in the documentation.