Remove extra end in the code example