Generate a correctly punctuated version of the following text: Riemann came close to proving the result but the theory of functions of a complex variable was not sufficiently developed to enable him to complete the proof
Riemann came close to proving the result, but the theory of functions of a complex variable was not sufficiently developed to enable him to complete the proof.