[fix doc] add missing returns