From 11565a40b315212474f52eb576a9fd92b11f1132 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 20 Dec 2021 14:18:29 +0100 Subject: Set Rules Episode IX: The Rise of Testing --- src/source.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/source.rs') diff --git a/src/source.rs b/src/source.rs index 5fd85ed9..432688a0 100644 --- a/src/source.rs +++ b/src/source.rs @@ -149,12 +149,12 @@ impl SourceFile { Self::new(SourceId(0), Path::new(""), src.into()) } - /// The root node of the untyped green tree. + /// The root node of the file's untyped green tree. pub fn root(&self) -> &Rc { &self.root } - /// The file's abstract syntax tree. + /// The root node of the file's typed abstract syntax tree. pub fn ast(&self) -> TypResult { let red = RedNode::from_root(self.root.clone(), self.id); let errors = red.errors(); -- cgit v1.2.3