Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@gautamdhameja
Copy link
Contributor

  • Added code comments in the lib.rs of the timestamp module
  • Added readme.md in the root of timestamp module crate. This file has the module docs as per the SRML documentation template.

@parity-cla-bot
Copy link

It looks like @gautamdhameja signed our Contributor License Agreement. 👍

Many thanks,

Parity Technologies CLA Bot

1 similar comment
@parity-cla-bot
Copy link

It looks like @gautamdhameja signed our Contributor License Agreement. 👍

Many thanks,

Parity Technologies CLA Bot

@gautamdhameja gautamdhameja force-pushed the gd-srml-docs-timestamp branch from d427dac to 679ec03 Compare March 5, 2019 16:45
@kianenigma
Copy link
Contributor

Whenever I wanted to learn about a new srml, lack of explanation on the test cases was quite a barrier. I would recommend putting some explanatory docs on the tests as well since they should cover the common use cases of the module + common error/edge cases. Hence, I think they are quite important and should be documented + potentially linked as a further source of learning at the end of the .md file.

@ltfschoen
Copy link
Contributor

Copy link
Contributor

@ltfschoen ltfschoen left a comment

Choose a reason for hiding this comment

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

great work so far! i've left some nitpick comments

@gautamdhameja gautamdhameja requested a review from ltfschoen March 11, 2019 15:54
Copy link
Contributor

@gui1117 gui1117 left a comment

Choose a reason for hiding this comment

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

some general thoughts:

in rustdoc to make link you can write [NameOfTheStuff] and then at the end of the doc after an empty line you write [NameOfTheStuff]: struct.NameOfTheStuff.html

look at ./core/sr-sandbox/src/lib.rs line 79 for example

using this method a lot of types can be referenced. like block_period, set, get etc...

also I'm not sure some /// doc on private function with expressfull name is useful.

@bkchr
Copy link
Member

bkchr commented Mar 12, 2019

in rustdoc to make link you can write [NameOfTheStuff] and then at the end of the doc after an empty line you write [NameOfTheStuff]: struct.NameOfTheStuff.html

You don't need to do this anymore, just write [NameOfTheStuff] and it works. Rustdocs supports intra doc links for some time now.

@gui1117
Copy link
Contributor

gui1117 commented Mar 13, 2019

in rustdoc to make link you can write [NameOfTheStuff] and then at the end of the doc after an empty line you write [NameOfTheStuff]: struct.NameOfTheStuff.html

You don't need to do this anymore, just write [NameOfTheStuff] and it works. Rustdocs supports intra doc links for some time now.

it seems to be the case on nightly only

@gavofyork gavofyork added A5-grumble and removed A0-please_review Pull request needs code review. A4-gotissues labels Mar 13, 2019
Copy link
Member

@shawntabrizi shawntabrizi left a comment

Choose a reason for hiding this comment

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

I have 2 suggestions, but nothing that should block a merge

@shawntabrizi shawntabrizi added the A0-please_review Pull request needs code review. label Mar 14, 2019
@shawntabrizi shawntabrizi requested a review from ltfschoen March 14, 2019 22:28
Copy link
Contributor

@ltfschoen ltfschoen left a comment

Choose a reason for hiding this comment

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

LGTM, left a couple more nitpick

@bkchr bkchr merged commit 5cb5396 into master Mar 15, 2019
@bkchr bkchr deleted the gd-srml-docs-timestamp branch March 15, 2019 10:48
@shawntabrizi
Copy link
Member

🥇

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.