fix documentation for diff method