diff --git a/doc/api/assert.md b/doc/api/assert.md
index 3848cde97f65e8..94272b4caaebf6 100644
--- a/doc/api/assert.md
+++ b/doc/api/assert.md
@@ -692,7 +692,7 @@ are recursively evaluated also by the following rules.
 import assert from 'assert/strict';
 
 // This fails because 1 !== '1'.
-deepStrictEqual({ a: 1 }, { a: '1' });
+assert.deepStrictEqual({ a: 1 }, { a: '1' });
 // AssertionError: Expected inputs to be strictly deep-equal:
 // + actual - expected
 //