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 {