1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] argument to Exception#excepton is optional [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2020-06-18 08:59:47 +09:00
parent cc46d514dc
commit e14cba354c
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -1022,7 +1022,7 @@ exc_initialize(int argc, VALUE *argv, VALUE exc)
* Document-method: exception
*
* call-seq:
* exc.exception(string) -> an_exception or exc
* exc.exception([string]) -> an_exception or exc
*
* With no argument, or if the argument is the same as the receiver,
* return the receiver. Otherwise, create a new