зеркало из https://github.com/github/ruby.git
Remove call-seq for method that doesn't exist (#2521)
```
$ ruby -ve 'IO.popen("ls"){}; $?.to_int'
ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-darwin18]
Traceback (most recent call last):
-e:1:in `<main>': undefined method `to_int' for #<Process::Status: pid 33989 SIGPIPE (signal 13)> (NoMethodError)
Did you mean? to_i
taint
```
Process::Status#to_int was removed at 7ba5c4e
.
This commit is contained in:
Родитель
7db83b04d0
Коммит
5be2af5f90
|
@ -547,7 +547,6 @@ rb_last_status_clear(void)
|
|||
/*
|
||||
* call-seq:
|
||||
* stat.to_i -> integer
|
||||
* stat.to_int -> integer
|
||||
*
|
||||
* Returns the bits in _stat_ as a Integer. Poking
|
||||
* around in these bits is platform dependent.
|
||||
|
|
Загрузка…
Ссылка в новой задаче