Skip to content

Commit

Permalink
(docs) update example of accessing string internals
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Dec 18, 2024
1 parent 1ab05fe commit 2ebd89b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/docs/lips/reflection.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ Same as with numbers and list you can access internals of Strings.

```scheme
(let ((str "hello"))
(str.__string__.toUpperCase)
(set! str.__string__ "world")
str)
(str.__string__.toUpperCase))
;; ==> "HELLO"
```

`__string__` property is read only so you can't modify it's value:
Expand Down

0 comments on commit 2ebd89b

Please sign in to comment.