Skip to content

Commit 35f47b9

Browse files
authored
Merge pull request #2172 from vsemozhetbyt/patch-1
Fix link in 1.5.3
2 parents d3b38c2 + 54c8247 commit 35f47b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/03-string/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ if (str.indexOf("Widget") != -1) {
312312

313313
#### The bitwise NOT trick
314314

315-
One of the old tricks used here is the [bitwise NOT](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators#Bitwise_NOT) `~` operator. It converts the number to a 32-bit integer (removes the decimal part if exists) and then reverses all bits in its binary representation.
315+
One of the old tricks used here is the [bitwise NOT](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_NOT) `~` operator. It converts the number to a 32-bit integer (removes the decimal part if exists) and then reverses all bits in its binary representation.
316316

317317
In practice, that means a simple thing: for 32-bit integers `~n` equals `-(n+1)`.
318318

0 commit comments

Comments
 (0)