The nitrile is heated under reflux with dilute hydrochloric acid. Instead of getting an ammonium salt as you would do if the reaction only involved water, you produce the free carboxylic acid.
For example, with ethanenitrile and hydrochloric acid you would get ethanoic acid and ammonium chloride.
Why is the free acid formed rather than the ammonium salt? The ethanoate ions in the ammonium ethanoate react with hydrogen ions from the hydrochloric acid to produce ethanoic acid. Ethanoic acid is only a weak acid and so once it has got the hydrogen ion, it tends to hang on to it."