Skip to content

Commit 49d83f6

Browse files
authored
doubly-linked-list: name doctest items consistently (#2165)
The test runner will soon be extended to better extract names and source code of doctests. Test name extraction is necessarily based on the name of the item a doctest is attached to. Making the naming of doctest items consistent therefore ensures good test name presentation.
1 parent cd286c8 commit 49d83f6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

exercises/practice/doubly-linked-list/src/pre_implemented.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl<T> Cursor<'_, T> {
6565
/// trait AssertSend: Send {}
6666
/// impl<T> AssertSend for LinkedList<T> {}
6767
/// ```
68-
pub struct IllegalSend;
68+
const _ILLEGAL_SEND: () = ();
6969

7070
#[allow(unused)]
7171
#[cfg(feature = "advanced")]
@@ -74,4 +74,4 @@ pub struct IllegalSend;
7474
/// trait AssertSync: Sync {}
7575
/// impl<T> AssertSync for LinkedList<T> {}
7676
/// ```
77-
pub struct IllegalSync;
77+
const _ILLEGAL_SYNC: () = ();

0 commit comments

Comments
 (0)