From 85def307fc83f8c0d164b1506bb855dfaed5f8b5 Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Fri, 21 Jun 2019 23:01:48 +0200 Subject: shared_from_iter: Polish internal docs. --- src/liballoc/tests/arc.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/liballoc/tests') diff --git a/src/liballoc/tests/arc.rs b/src/liballoc/tests/arc.rs index ce64e2de013..cf2ad2a8e60 100644 --- a/src/liballoc/tests/arc.rs +++ b/src/liballoc/tests/arc.rs @@ -88,6 +88,8 @@ fn eq() { assert_eq!(*x.0.borrow(), 0); } +// The test code below is identical to that in `rc.rs`. +// For better maintainability we therefore define this type alias. type Rc = Arc; const SHARED_ITER_MAX: u16 = 100; -- cgit 1.4.1-3-g733a5