Confusion in using delimiter \\

in mysql function we have been taught that delimiter\ in used in the syntax. and also that delimiter is used to separate two lines.
and it is said that the default delimiter is " ; " and it also can be changed into " \’’ , " $" sign
so when we are doing the query we first type delimiter \. but after that we use colon " ;" to separate the lines. why?