doc fix of missing return datatype

doc fix of missing return datatype in function detectLanguage