Fix feature builds.

This commit is contained in:
Stephen Chung
2021-01-09 17:06:01 +08:00
parent f8b36a470a
commit e5b345bca4
2 changed files with 4 additions and 7 deletions

View File

@@ -1963,7 +1963,7 @@ impl Engine {
/// ));
///
/// let mut ast = engine.compile(r#"let x = "hello"; debug(x);"#)?;
/// ast.set_source(Some("world"));
/// ast.set_source("world");
/// engine.consume_ast(&ast)?;
///
/// assert_eq!(*result.read().unwrap(), r#"world @ 1:18 > "hello""#);