Changed function to method in context.rst