From de3e94b0ef65fa823aa78b0ffa53f0aad540aa1a Mon Sep 17 00:00:00 2001 From: Minwoo Jung Date: Sun, 31 Jan 2016 00:47:14 +0900 Subject: [PATCH] doc: fix `notDeepEqual` API API calls in `assert` are `deepEqual()`, not `notDeepEqual()`. use `notDeepEqual` to make it clear. PR-URL: https://github.com/nodejs/node/pull/4971 Reviewed-By: Rich Trott --- doc/api/assert.markdown | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/api/assert.markdown b/doc/api/assert.markdown index 1750aed0e1d..08f3b709f73 100644 --- a/doc/api/assert.markdown +++ b/doc/api/assert.markdown @@ -236,16 +236,16 @@ const obj3 = { } const obj4 = Object.create(obj1); -assert.deepEqual(obj1, obj1); - AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } } - -assert.deepEqual(obj1, obj2); - // OK, obj1 and obj2 are not deeply equal - -assert.deepEqual(obj1, obj3); +assert.notDeepEqual(obj1, obj1); // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } } -assert.deepEqual(obj1, obj4); +assert.notDeepEqual(obj1, obj2); + // OK, obj1 and obj2 are not deeply equal + +assert.notDeepEqual(obj1, obj3); + // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } } + +assert.notDeepEqual(obj1, obj4); // OK, obj1 and obj2 are not deeply equal ```