1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-13 12:56:27 +02:00
comprehensive-rust/src/control-flow-basics
Dustin J. Mitchell 44a79741ff
Be more consistent about tests vs. main (#2644)
The content slides all use `fn main`, with the exception of the testing
segment. But with this change, where it makes sense exercises use tests
instead, and not both tests and `fn main`.

A small change in `book.js` supports running tests when a code sample
does not have `fn main` but does have `#[test]`, so these work
naturally.

Fixes #1581.
2025-02-18 20:13:16 +00:00
..
2023-11-29 16:39:24 +01:00
2024-08-20 08:15:39 +00:00
2024-02-07 19:33:49 +00:00
2023-11-29 16:39:24 +01:00