Skip to content

Commit 96af770

Browse files
committed
Fix example
1 parent 07859f3 commit 96af770

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/assert/is-unity-probability-array

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/assert/is-unity-probability-array/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Tests if a `value` is an array of probabilities that sum to one.
1919
var bool = isUnityProbabilityArray( [ 0.25, 0.5, 0.25 ] );
2020
// returns true
2121

22-
bool = isUnityProbabilityArray( Uint8Array( [ 0, 1 ] );
22+
bool = isUnityProbabilityArray( new Uint8Array( [ 0, 1 ] ) );
2323
// returns true
2424

2525
bool = isUnityProbabilityArray( [ 3.14, 0.0 ] );

0 commit comments

Comments
 (0)