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