Fix code example of Kernel.#warn for 2.0 and returned value