Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code-block directive in struct docs #2422

Merged
merged 1 commit into from
Aug 17, 2021

Conversation

milancermak
Copy link
Contributor

The documentation is currently missing a code example on how to define structs. That's because the code-block RST directive is missing a language argument. This PR fixes it.

Put a link to a cute animal picture inside the parenthesis-->

The documentation is currently [missing a code example on how to define structs](https://vyper.readthedocs.io/en/stable/types.html#structs). That's because the `code-block` RST directive is missing a language argument. This PR fixes it.
@codecov-commenter
Copy link

codecov-commenter commented Aug 17, 2021

Codecov Report

Merging #2422 (6fdcf8f) into master (f1c65b7) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2422   +/-   ##
=======================================
  Coverage   85.47%   85.47%           
=======================================
  Files          91       91           
  Lines        9027     9027           
  Branches     2151     2151           
=======================================
  Hits         7716     7716           
  Misses        806      806           
  Partials      505      505           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f1c65b7...6fdcf8f. Read the comment docs.

Copy link
Member

@charles-cooper charles-cooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I noticed the example itself is slightly wrong -- 2 is not a valid value for the value2 field, it should be 2.0. @milancermak would you be open to fixing that as well?

@charles-cooper charles-cooper merged commit ed59064 into vyperlang:master Aug 17, 2021
@milancermak milancermak deleted the patch-1 branch August 17, 2021 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants