diff options
author | zverok <[email protected]> | 2019-08-11 13:50:20 +0300 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2019-10-24 18:39:04 +0900 |
commit | 913807bd6ce98d3d362d27caef4f5e2aef0e5d79 (patch) | |
tree | a120385f2f05fa45f7b83934a006b55ec515c085 /ext/date/date_core.c | |
parent | 2e37c1960a0b84a9018dc0202a36daf4e692ed46 (diff) |
[ruby/date] Simplify #inspect
https://github.com/ruby/date/commit/af01edd7d8
Diffstat (limited to 'ext/date/date_core.c')
-rw-r--r-- | ext/date/date_core.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c index 9e4a4f22cc..e00748f9c2 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -6573,11 +6573,8 @@ static VALUE mk_inspect(union DateData *x, VALUE klass, VALUE to_s) { return rb_enc_sprintf(rb_usascii_encoding(), - "#<%"PRIsVALUE": %"PRIsVALUE" " - "((%+"PRIsVALUE"j,%ds,%+"PRIsVALUE"n),%+ds,%.0fj)>", - klass, to_s, - m_real_jd(x), m_df(x), m_sf(x), - m_of(x), m_sg(x)); + "#<%"PRIsVALUE": %"PRIsVALUE">", + klass, to_s); } /* |