mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
fix!: rename to_str
-> __str__
This commit is contained in:
parent
cfd0d259a0
commit
a97b89c056
6 changed files with 21 additions and 17 deletions
|
@ -9,7 +9,7 @@ assert const(True)(2) == True
|
|||
|
||||
print_to_str!|S <: Show|(s: S): Str =
|
||||
print! s
|
||||
s.to_str()
|
||||
s.__str__()
|
||||
|
||||
discard print_to_str!(1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue