(i) HCl(aq)+NaOH(aq)→NaCl(aq)+H2O(l)
(ii) HNO3(aq)+KOH(aq)→KNO3(aq)+H2O(l)
In water, the acids, the bases and the salts are all present as ions. Writing reaction (i) in terms of its ions:
H++Cl−+Na++OH−→Na++Cl−+H2O
The Na+ and Cl− ions are present, free in solution, both before and after: they do not change. The same is true of K+ and NO3− in reaction (ii). Leaving out the ions that do not change, both reactions come down to the same change:
H+(aq)+OH−(aq)→H2O(l)
That is what the teacher means. In every neutralisation of an acid by a base in water, the H+ ions of the acid combine with the OH− ions of the base to form water. The "different salts" are just the ions that were there all along and took no part, and they are left behind together in the solution.

Neutralisation, as a word equation and as what the ions actually do.