This code may or may not wake up the controller as expected. A single wire with some more metal at its end acts as an antenna, catching whatever ambient electric noise. The tutorial is misleading, should be corrected.
A true capacitive sensor consists of two plates, which are loaded and unloaded by the controller, and the measured time depends on some material brought near the plates. See the CapSense library for details.