Skip to content

Commit

Permalink
Make some doctest assertions compatible with Haxe 4.preview5
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Oct 21, 2018
1 parent bc4d7d3 commit db41a52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hx/concurrent/collection/CopyOnWriteArray.hx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ abstract CopyOnWriteArray<T>(CopyOnWriteArrayImpl<T>) 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 {
Expand Down
2 changes: 1 addition & 1 deletion src/hx/concurrent/collection/SynchronizedArray.hx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ abstract SynchronizedArray<T>(SynchronizedArrayImpl<T>) 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 {
Expand Down

0 comments on commit db41a52

Please sign in to comment.