Closed bq-wrongway closed 11 months ago
you are probably using std::thread::sleep()
instead of the tokio::time::sleep()
@bq-wrongway we're sure that all the Book examples work, because we check that on CI.
What confuses you, is that the boilerplate code of examples is mostly hidden (the lines started witn #
), to not overbloat them with redundant information. This is a widely used feature of rustdoc
, and so, mdBook
too.
To see the hidden code of an example, you may use this button in mdBook
interface:
And they will be shown like this:
I was checking out this example https://cucumber-rs.github.io/cucumber/current/writing/scenario_outline.html
And it does not compile (well, unless i remove .await) keywords.
Am i doing something wrong or the example is missing something ?