From 91e94a5adcd0b610937ac1ff6373d7b26fe2ad9e Mon Sep 17 00:00:00 2001 From: Jeff Date: Thu, 15 Feb 2024 10:37:10 -0500 Subject: [PATCH] Clean up --- src/interpret.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/interpret.rs b/src/interpret.rs index 1dd2acd..0e4775d 100644 --- a/src/interpret.rs +++ b/src/interpret.rs @@ -172,12 +172,7 @@ impl Interpreter { Ok(self.parse(source)?.root_node().to_sexp()) } - /// Return formatted Dust code generated from the current abstract tree, or - /// None if no source code has been run successfully. - /// - /// You should call [validate][Interpreter::validate] before calling this - /// function. You can only create formatted source from a valid abstract - /// tree. + /// Return a formatted version of the source. pub fn format(&mut self, source: &str) -> Result { let mut formatted_output = String::new();