From db41a52e16a49207e72fd8487925914ff79d92ea Mon Sep 17 00:00:00 2001 From: Sebastian Thomschke Date: Sun, 21 Oct 2018 22:17:58 +0200 Subject: [PATCH] Make some doctest assertions compatible with Haxe 4.preview5 --- src/hx/concurrent/collection/CopyOnWriteArray.hx | 2 +- src/hx/concurrent/collection/SynchronizedArray.hx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hx/concurrent/collection/CopyOnWriteArray.hx b/src/hx/concurrent/collection/CopyOnWriteArray.hx index 58ad1e0..6a4aaa5 100644 --- a/src/hx/concurrent/collection/CopyOnWriteArray.hx +++ b/src/hx/concurrent/collection/CopyOnWriteArray.hx @@ -35,7 +35,7 @@ abstract CopyOnWriteArray(CopyOnWriteArrayImpl) from CopyOnWriteArrayImpl< /** - * >>> function(){var arr=new CopyOnWriteArray([1,2]); arr[2]=3; return arr.toArray(); }() == [1, 2, 3] + * >>> (function(){var arr=new CopyOnWriteArray([1,2]); arr[2]=3; return arr.toArray(); })() == [1, 2, 3] */ @:arrayAccess inline function _set(idx:Int, x:T):T { diff --git a/src/hx/concurrent/collection/SynchronizedArray.hx b/src/hx/concurrent/collection/SynchronizedArray.hx index f8366d7..c78ca0a 100644 --- a/src/hx/concurrent/collection/SynchronizedArray.hx +++ b/src/hx/concurrent/collection/SynchronizedArray.hx @@ -35,7 +35,7 @@ abstract SynchronizedArray(SynchronizedArrayImpl) from SynchronizedArrayIm /** - * >>> function(){var arr=new SynchronizedArray([1,2]); arr[2]=3; return arr.toArray(); }() == [1, 2, 3] + * >>> (function(){var arr=new SynchronizedArray([1,2]); arr[2]=3; return arr.toArray(); })() == [1, 2, 3] */ @:arrayAccess inline function _set(idx:Int, x:T):T {