Voluntarily causing hurt in committing robbery.If any person, in committing or in attempting to commit robbery, voluntarily causes hurt, such person, and any other person jointly concerned in committing or attempting to commit such robbery, shall be punished with 1imprisonment for life, or with rigorous imprisonment for a term which may extend to ten years, and shall also be liable to fine.