Skip to content

Commit e5734fa

Browse files
committed
all asserts
1 parent 0326321 commit e5734fa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

runtime/Stdlib_Symbol.resi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ Returns `Some(string)` containing the description of this symbol, or `None` if t
6565
## Examples
6666
6767
```rescript
68-
let sym = Symbol.make("foo")
69-
Console.log(sym->Symbol.description)
68+
let sym = Symbol.make("sym1")
69+
Symbol.description(sym)->assertEqual(Some("sym1"))
7070
```
7171
*/
7272
@get
@@ -80,9 +80,9 @@ external description: t => option<string> = "description"
8080
## Examples
8181
8282
```rescript
83-
let sym = Symbol.make("foo")
84-
Console.log(sym->Symbol.toString)
85-
// Expected output: "Symbol(foo)"
83+
let sym = Symbol.make("sym1")
84+
85+
Symbol.toString(sym)->assertEqual("Symbol(sym1)")
8686
```
8787
*/
8888
@send

0 commit comments

Comments
 (0)