W2C nanodot-decorated CNT networks as a highly efficient and stable electrocatalyst for hydrogen evolution in acidic and alkaline media.