diff options
Diffstat (limited to 'src/ast.rs')
-rw-r--r-- | src/ast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ impl Program { | |||
10 | } | 10 | } |
11 | } | 11 | } |
12 | 12 | ||
13 | pub fn from_str(mut self, i: &str) -> Result<Self, nom::error::Error<&str>> { | 13 | pub fn with_file(mut self, i: &str) -> Result<Self, nom::error::Error<&str>> { |
14 | use nom::Finish; | 14 | use nom::Finish; |
15 | let (remaining_input, stanzas) = crate::parser::parse_file(i).finish()?; | 15 | let (remaining_input, stanzas) = crate::parser::parse_file(i).finish()?; |
16 | assert!(remaining_input.trim().is_empty(), "{remaining_input}"); | 16 | assert!(remaining_input.trim().is_empty(), "{remaining_input}"); |