Fix doc bug where forEach parameter order is wrong