Skip to content

Commit 395c873

Browse files
committed
doc: edit text for DEP0104
Make the deprecation message a bit clear and concise. PR-URL: nodejs#20519 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 29ccf6e commit 395c873

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/api/deprecations.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -949,11 +949,11 @@ methods in particular can be replaced by using [`util.types`][].
949949
950950
Type: Documentation-only (supports [`--pending-deprecation`][])
951951
952-
Currently when assigning a property to [`process.env`][], the assigned value is
953-
implicitly converted to a string if it is not a string. This behavior is
954-
deprecated if the assigned value is not a string, boolean, or number. In the
955-
future, such assignment may result in a thrown error. Please convert the
956-
property to a string before assigning it to `process.env`.
952+
When assigning a non-string property to [`process.env`][], the assigned value is
953+
implicitly converted to a string. This behavior is deprecated if the assigned
954+
value is not a string, boolean, or number. In the future, such assignment may
955+
result in a thrown error. Please convert the property to a string before
956+
assigning it to `process.env`.
957957
958958
<a id="DEP0105"></a>
959959
### DEP0105: decipher.finaltol

0 commit comments

Comments
 (0)