Nazir 28: Chanah's Neder

How can Chanah vow that Shemuel will be a Nazir?