mirror of
https://github.com/ruuda/rcl.git
synced 2025-12-23 04:47:19 +00:00
14 lines
291 B
Text
14 lines
291 B
Text
"ab".remove_prefix("c")
|
|
|
|
# output:
|
|
stdin:1:20
|
|
╷
|
|
1 │ "ab".remove_prefix("c")
|
|
╵ ^~~
|
|
Error: Cannot remove this prefix. "ab" does not start with "c".
|
|
|
|
stdin:1:19
|
|
╷
|
|
1 │ "ab".remove_prefix("c")
|
|
╵ ^
|
|
In call to method 'String.remove_prefix'.
|