[doc] fix allowed as function documentation