Fix inconsistency in Promise.method code example