fix console.log higher-order calls in docs