When a complaint is laid before a magistrate of the commission of a public offense triable in another county of the state, but showing that the defendant is in the county where the complaint is made, the same proceedings must be had as prescribed in this chapter, except that the warrant must require the defendant to be taken before the nearest and most accessible magistrate of the county in which the offense is triable, and the complaint of the informant, with the depositions, if any, of the witnesses who may have been produced, must be delivered by the magistrate to the officer to whom the warrant is delivered.
R.L.1910, § 5641.