[docs] max() fn has a bug, maybe