Generate a correctly punctuated version of the following text: He spent the year 194546 as a visiting lecturer at Princeton before being appointed as a full professor at the University of Indiana in 1946
He spent the year 1945-46 as a visiting lecturer at Princeton before being appointed as a full professor at the University of Indiana in 1946.