From e3f233c9b5149463ae2dd36a7309185aa97b514a Mon Sep 17 00:00:00 2001 From: habere-et-dispertire Date: Tue, 29 Aug 2023 23:28:26 +0100 Subject: [PATCH] [javascript, typescript] replace_magic_with_identifier (#2265) * ...facilitates documentation *and translation*. * ...facilitates documentation *and translation*. --- .../javascript/general/replace_magic_with_identifier.md | 2 +- .../typescript/general/replace_magic_with_identifier.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/analyzer-comments/javascript/general/replace_magic_with_identifier.md b/analyzer-comments/javascript/general/replace_magic_with_identifier.md index d1bfc5675..061274dfd 100644 --- a/analyzer-comments/javascript/general/replace_magic_with_identifier.md +++ b/analyzer-comments/javascript/general/replace_magic_with_identifier.md @@ -8,5 +8,5 @@ When possible, named constants are often a better choice than inlined literals b The programmer might infer the meaning after reading the code carefully, but it is not obvious. Magic values become particularly confusing when the same value is used for different purposes in one section of code. - It is easier to alter the value, as it is not duplicated. -- It encourages and facilitates documentation. +- It encourages and facilitates documentation and translation. - It aids with autocompletion in many IDEs. diff --git a/analyzer-comments/typescript/general/replace_magic_with_identifier.md b/analyzer-comments/typescript/general/replace_magic_with_identifier.md index d1bfc5675..061274dfd 100644 --- a/analyzer-comments/typescript/general/replace_magic_with_identifier.md +++ b/analyzer-comments/typescript/general/replace_magic_with_identifier.md @@ -8,5 +8,5 @@ When possible, named constants are often a better choice than inlined literals b The programmer might infer the meaning after reading the code carefully, but it is not obvious. Magic values become particularly confusing when the same value is used for different purposes in one section of code. - It is easier to alter the value, as it is not duplicated. -- It encourages and facilitates documentation. +- It encourages and facilitates documentation and translation. - It aids with autocompletion in many IDEs.