Fixing function documentation