Rename set_doc_comments to enable_doc_comments.

This commit is contained in:
Stephen Chung
2021-01-28 16:59:19 +08:00
parent cef61bc924
commit 903b6d6795
5 changed files with 15 additions and 8 deletions

View File

@@ -12,10 +12,10 @@ fn test_comments() -> Result<(), Box<EvalAltResult>> {
assert_eq!(
engine.eval::<INT>(
r#"
let /* I am a
multi-line
comment, yay!
*/ x = 42; x
let /* I am a
multi-line
comment, yay!
*/ x = 42; x
"#
)?,
42
@@ -88,7 +88,7 @@ fn test_comments_doc() -> Result<(), Box<EvalAltResult>> {
)
.is_err());
engine.set_doc_comments(false);
engine.enable_doc_comments(false);
engine.compile(
r"