It showed many options and I was about to click on Eject option but mistakenly clicked on Format option that was present just above Eject Soon after choosing Format option my computer displayed a message that formatting will erase all the data present in the drive

Could you correct the punctuation please?
It showed many options and I was about to click on "Eject" option, but mistakenly clicked on "Format" option that was present just above "Eject". Soon after choosing "Format" option, my computer displayed a message that formatting will erase all the data present in the drive.