Skip to content

Commit 2dc4b85

Browse files
committed
Remove main function mention.
1 parent 233d37f commit 2dc4b85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rust-2024/rustdoc-doctests.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn subtract(left: u64, right: u64) -> u64 {
3131
}
3232
```
3333

34-
In this example, the two doctests will now be compiled in a single executable. Rustdoc will essentially place each example in a separate function within a single binary. Rustdoc also adds a small `main` function which tells it which test to run. The tests still run in independent processes as they did before, so any global state (like global statics) should still continue to work correctly.
34+
In this example, the two doctests will now be compiled in a single executable. Rustdoc will essentially place each example in a separate function within a single binary. The tests still run in independent processes as they did before, so any global state (like global statics) should still continue to work correctly.
3535

3636
This change is only available in the 2024 Edition to avoid potential incompatibilities with existing doctests which may not work in a combined executable.
3737

0 commit comments

Comments
 (0)