Seems like accessing $it outside each is not possible now (#4000)

This commit is contained in:
miheer vaidya 2021-12-02 10:49:24 -07:00 committed by GitHub
parent 79c7b20cfd
commit c00853a473
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ Kill a process using the process id.
## Examples
Kill the pid using the most memory
```shell
> ps | sort-by mem | last | kill $it.pid
> ps | sort-by mem | last | each { kill $it.pid }
```
Force kill a given pid