diff --git a/console/program/src/data/future/parse.rs b/console/program/src/data/future/parse.rs index 616ae22c14..c54356afed 100644 --- a/console/program/src/data/future/parse.rs +++ b/console/program/src/data/future/parse.rs @@ -28,7 +28,7 @@ impl Parser for Future { let (string, _) = Sanitizer::parse(string)?; // Parse the members. let (string, arguments) = separated_list0( - pair(pair(Sanitizer::parse, tag(",")), Sanitizer::parse), + pair(pair(Sanitizer::parse_whitespaces, tag(",")), Sanitizer::parse), alt((map(Future::parse, Argument::Future), map(Plaintext::parse, Argument::Plaintext))), )(string)?; // Parse the whitespace and comments from the string. @@ -103,7 +103,7 @@ impl Parser for Future { impl FromStr for Future { type Err = Error; - /// Returns a plaintext from a string literal. + /// Returns a future from a string literal. fn from_str(string: &str) -> Result { match Self::parse(string) { Ok((remainder, object)) => { @@ -118,21 +118,21 @@ impl FromStr for Future { } impl Debug for Future { - /// Prints the plaintext as a string. + /// Prints the future as a string. fn fmt(&self, f: &mut Formatter) -> fmt::Result { Display::fmt(self, f) } } impl Display for Future { - /// Prints the plaintext as a string. + /// Prints the future as a string. fn fmt(&self, f: &mut Formatter) -> fmt::Result { self.fmt_internal(f, 0) } } impl Future { - /// Prints the plaintext with the given indentation depth. + /// Prints the future with the given indentation depth. fn fmt_internal(&self, f: &mut Formatter, depth: usize) -> fmt::Result { /// The number of spaces to indent. const INDENT: usize = 2;