Instead of being a copy of line 76, line 79 instead correctly indicates that it will show a histogram for a gray image in curve mode, as given by the code block at line 103 referencing image "gray" instead of image "im".
Original commit is a5f19f7dd6ae5bc93f73e0417a9e0bfd34c01672