Skip to content

Commit a556d26

Browse files
committed
Improve example
It was not immediately clear that the evaluation of `assert` statements can be toggled from the `dart` binary.
1 parent 442cc41 commit a556d26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ var loggerNoStack = Logger(
99
);
1010

1111
void main() {
12+
print(
13+
"Run with either `dart example/lib/main.dart` or `dart --enable-asserts example/lib/main.dart`.");
1214
demo();
1315
}
1416

@@ -22,6 +24,4 @@ void demo() {
2224
logger.e("Error! Something bad happened", "Test Error");
2325

2426
loggerNoStack.v({"key": 5, "value": "something"});
25-
26-
print("Test\nTest2");
2727
}

0 commit comments

Comments
 (0)