From 4fd361343449bcdf7af4642851dc5dbf772f1a68 Mon Sep 17 00:00:00 2001 From: Pascal Hertleif Date: Mon, 11 Feb 2019 17:18:27 +0100 Subject: Fix some typos --- crates/test_utils/src/marks.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'crates/test_utils/src/marks.rs') diff --git a/crates/test_utils/src/marks.rs b/crates/test_utils/src/marks.rs index d2a84643c..107432926 100644 --- a/crates/test_utils/src/marks.rs +++ b/crates/test_utils/src/marks.rs @@ -1,10 +1,10 @@ //! This module implements manually tracked test coverage, which useful for //! quickly finding a test responsible for testing a particular bit of code. //! -//! See https://matklad.github.io/2018/06/18/a-trick-for-test-maintenance.html +//! See //! for details, but the TL;DR is that you write your test as //! -//! ```no-run +//! ```rust,no_run //! #[test] //! fn test_foo() { //! covers!(test_foo); @@ -13,7 +13,9 @@ //! //! and in the code under test you write //! -//! ```no-run +//! ```rust,no_run +//! # use test_utils::tested_by; +//! # fn some_condition() -> bool { true } //! fn foo() { //! if some_condition() { //! tested_by!(test_foo); -- cgit v1.2.3