Skip to content

Commit 12da8e9

Browse files
committed
Why did cargo test test the documentation
1 parent 4e11cf4 commit 12da8e9

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

zenlang-cli/src/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ use std::{
33
fs::{self},
44
io::Read,
55
};
6-
use zenlang::{compiler, module, parser, stdlib, strong_u64::U64BitsControl, tokenizer, vm};
6+
use zenlang::{
7+
compiler, module, parser, stdlib,
8+
strong_u64::U64BitsControl,
9+
tokenizer::{self, Tokenizer},
10+
vm,
11+
};
712

813
mod platform;
914

zenlang/src/ast/node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub trait Compile {
1111
/// Disable pushing for the current node
1212
///
1313
/// This is needed in these cases, where with pushing would just flood the stack with unused data:
14-
/// ```
14+
/// ```ignore
1515
/// fn main {
1616
/// 123;
1717
/// }

zenlang/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//! ZenLang
22
//!
33
//! Primary programming language of ZenOS
4-
//! ```
4+
//! ```ignore
55
//! fn main {
6-
//! println("Hello from ZenLang");
6+
//! println("Hello from ZenLang!");
77
//! return null;
88
//! }
99
//! ```

zenlang/src/tokenizer.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,7 @@
33
//! Tokenizes ZenLang code into tokens
44
//!
55
//! ### Example
6-
//! ```
7-
//! fn main {}
8-
//! ```
9-
//! tokenizes into
10-
//! ```
11-
//! Fn, Identifier(main), Lbrace, Rbrace
12-
//! ```
6+
//! `fn main {}` -> `Fn, Identifier(main), Lbrace, Rbrace`
137
use crate::unescape;
148
use alloc::string::*;
159
use libm::pow;

0 commit comments

Comments
 (0)