fix!: rename to_str -> __str__

This commit is contained in:
Shunsuke Shibayama 2023-09-13 16:48:20 +09:00
parent cfd0d259a0
commit a97b89c056
6 changed files with 21 additions and 17 deletions

View file

@ -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)