Skip to content

Commit af1e019

Browse files
Add mention about unsupported unsigned right shift
1 parent 16dec26 commit af1e019

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/docs/manual/latest/primitive-types.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ var result = 1 + 2;
173173
For values which are too large to be represented by Int or Float, there is the `bigint` primitive type.
174174
We provide the usual operations on them: `+`, `-`, `*`, `/`, etc. See [BigInt](api/core/bigint) for helper functions.
175175

176-
A bigint number is denoted by a trailing `n` like so: `42n`.
176+
A `bigint` number is denoted by a trailing `n` like so: `42n`.
177177

178178
As `bigint` is a different data type than `int`, it's necessary to open the corresponding module to overload the operators.
179179

@@ -193,7 +193,7 @@ var p = 2n ** 2n;
193193

194194
</CodeTab>
195195

196-
It also supports all the bitwise operations.
196+
It also supports all the bitwise operations, except unsigned shift right (`>>>`), which is not supported by JS itself for `bigint`s.
197197

198198
<CodeTab labels={["ReScript", "JS Output"]}>
199199

0 commit comments

Comments
 (0)