forked from crystal-lang/crystal
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve documentation for Object#to_s and #inspect
This patch changes the method definitions as proposed in crystal-lang#9966 and adds some additional notes. The part about ambigouity of collection members is removed because that's not generically relevant for `#inspect` but for individual implementations such as `Array#inspect`. So I added a short note about it there. It does not need to be repeated for every collection type.
- Loading branch information
1 parent
1a97e71
commit 09e6691
Showing
2 changed files
with
51 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters