Skip to content

Commit a83539d

Browse files
crorafpyu10055
andauthored
Fix description for util_base.ts assert function (#8270)
Co-authored-by: Ping Yu <4018+pyu10055@users.noreply.github.com>
1 parent 8c087a4 commit a83539d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tfjs-core/src/util_base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export function distSquared(a: FlatVector, b: FlatVector): number {
139139
*
140140
* ```js
141141
* const x = 2;
142-
* tf.util.assert(x === 2, 'x is not 2');
142+
* tf.util.assert(x === 2, () => 'x is not 2');
143143
* ```
144144
*
145145
* @param expr The expression to assert (as a boolean).

0 commit comments

Comments
 (0)