vyper icon indicating copy to clipboard operation
vyper copied to clipboard

Incorrect term used on L132 of docs/control-structures.rst - using `expect` instead of `accept`

Open dappconsulting opened this issue 2 years ago • 2 comments

Simple Summary

https://github.com/vyperlang/vyper/blob/79303fc4fcba06994ee5c6a7baef57bdb185006c/docs/control-structures.rst?plain=1#L132

Incorrect term used on L132 of docs/control-structures.rst - using expect instead of accept

L132: The below line is/can be misleading: "This function is always named __default__. It must be annotated with @external. It cannot expect any input arguments."

It should be changed to: "This function is always named __default__. It must be annotated with @external. It cannot accept any input arguments."

Motivation

Using expect instead of accept is incorrect and potentially misleading.

Specification

n/a

Backwards Compatibility

n/a

Dependencies

n/a

References

n/a

Copyright

Copyright and related rights waived via CC0

dappconsulting avatar Sep 21 '23 19:09 dappconsulting

thanks for the report! are you interested in submitting a PR to fix the issue?

charles-cooper avatar Sep 28 '23 22:09 charles-cooper

No problem. Sure. How do I go about that?

👊

dappconsulting avatar Sep 29 '23 01:09 dappconsulting