You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/docs/manual/v12.0.0/primitive-types.mdx
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -112,15 +112,15 @@ ReScript regular expressions compile cleanly to their JavaScript counterpart:
112
112
<CodeTablabels={["ReScript", "JS Output"]}>
113
113
114
114
```res example
115
-
let r = %re("/b/g")
115
+
let r = /b/g
116
116
```
117
117
```js
118
-
var r =/b/g;
118
+
let r =/b/g;
119
119
```
120
120
121
121
</CodeTab>
122
122
123
-
A regular expression like the above has the type `Re.t`. The [RegExp](api/core/regexp) module contains the regular expression helpers you have seen in JS.
123
+
A regular expression like the above has the type `RegExp.t`. The [RegExp](api/core/regexp) module contains the regular expression helpers you have seen in JS.
0 commit comments