about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-07-01 07:42:58 -0700
committerGitHub <noreply@github.com>2020-07-01 07:42:58 -0700
commitdb900d4ef35ac185811d5694b08b86cbc8412bea (patch)
tree7d564148b2b8da76ee00538cc794f4b449572cb3 /src/libstd/sys/unix/stack_overflow.rs
parentf213957c2e01067ab20ba74f71371093ed0b43bb (diff)
parent7231e575461d1246c247b2ac3e97c1adcab49737 (diff)
downloadrust-db900d4ef35ac185811d5694b08b86cbc8412bea.tar.gz
rust-db900d4ef35ac185811d5694b08b86cbc8412bea.zip
Rollup merge of #73828 - nop:fix/parameter-name-help, r=estebank
Fix wording for anonymous parameter name help

```
 --> exercises/functions/functions2.rs:8:15
  |
8 | fn call_me(num) {
  |               ^ expected one of `:`, `@`, or `|`
  |
  = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
help: if this is a `self` type, give it a parameter name
  |
8 | fn call_me(self: num) {
  |            ^^^^^^^^^
help: if this was a parameter name, give it a type
  |
8 | fn call_me(num: TypeName) {
  |            ^^^^^^^^^^^^^
help: if this is a type, explicitly ignore the parameter name
  |
8 | fn call_me(_: num) {
  |
```
This commit changes "if this was a parameter name" to "if this is a parameter name" to match the wording of similar errors.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions