Update singleton.cpp

fix the syntax