From 98f227d640dbe6f038d8c02cb7f26b87b1bbff24 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Fri, 7 Apr 2023 16:14:26 +0800 Subject: [PATCH] Fix doc test. --- src/ast/ast.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ast/ast.rs b/src/ast/ast.rs index 139f5634..6734a446 100644 --- a/src/ast/ast.rs +++ b/src/ast/ast.rs @@ -839,6 +839,8 @@ impl AST { /// /// { // <- new block scope /// const Z = 0; // <- literal constant not at top-level + /// + /// print(Z); // make sure the block is not optimized away /// } /// ")?; ///