From 3874f32277745c1290fa1665b39f3f2c10e1897e Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 30 Jan 2016 11:12:55 -0800 Subject: [PATCH] doc: apply consistent styling for functions Always refer to (for example) `assert.deepEqual()` as `assert.deepEqual()` and never as `assert.deepEqual`. PR-URL: https://github.com/nodejs/node/pull/4974 Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Stephen Belanger --- doc/api/assert.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/api/assert.markdown b/doc/api/assert.markdown index 08f3b709f7..f0bc4fbd0a 100644 --- a/doc/api/assert.markdown +++ b/doc/api/assert.markdown @@ -89,7 +89,7 @@ parameter is undefined, a default error message is assigned. ## assert.deepStrictEqual(actual, expected[, message]) -Generally identical to `assert.deepEqual` with the exception that primitive +Generally identical to [`assert.deepEqual()`][] with the exception that primitive values are compared using the strict equality operator ( `===` ). ```js @@ -214,7 +214,7 @@ assert.ifError(new Error()); // Throws Error ## assert.notDeepEqual(actual, expected[, message]) -Tests for any deep inequality. Opposite of [`assert.deepEqual`][]. +Tests for any deep inequality. Opposite of [`assert.deepEqual()`][]. ```js const assert = require('assert'); @@ -255,7 +255,7 @@ parameter is undefined, a default error message is assigned. ## assert.notDeepStrictEqual(actual, expected[, message]) -Tests for deep strict inequality. Opposite of [`assert.deepStrictEqual`][]. +Tests for deep strict inequality. Opposite of [`assert.deepStrictEqual()`][]. ```js const assert = require('assert'); @@ -402,8 +402,8 @@ assert.throws( ``` [Locked]: documentation.html#documentation_stability_index -[`assert.deepEqual`]: #assert_assert_deepequal_actual_expected_message -[`assert.deepStrictEqual`]: #assert_assert_deepstrictequal_actual_expected_message +[`assert.deepEqual()`]: #assert_assert_deepequal_actual_expected_message +[`assert.deepStrictEqual()`]: #assert_assert_deepstrictequal_actual_expected_message [`assert.ok()`]: #assert_assert_ok_value_message [`assert.throws()`]: #assert_assert_throws_block_error_message [`Error`]: errors.html#errors_class_error