[docs] generic function documentation