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

Make README.md example compile #130

Merged
merged 2 commits into from
Feb 27, 2019
Merged

Make README.md example compile #130

merged 2 commits into from
Feb 27, 2019

Conversation

sherifabdlnaby
Copy link
Contributor

Readme example wasn't compiling.

README.md Outdated
@@ -63,20 +63,20 @@ type ExampleConfig struct {
// Defines default config option
var (
defaultConfig = ExampleConfig{
Counter: 4,
Counter: string(4),
Copy link

@urso urso Feb 27, 2019

Choose a reason for hiding this comment

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

better keep 4 here and change the type of counter to int. The validators on Counter are numeric validators and won't work on strings.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see, I updated the pull-request with counter type int

@urso
Copy link

urso commented Feb 27, 2019

Thanks you!

I left you a comment. Changing the Counter paramter to int will make the example more correct :)

@sherifabdlnaby
Copy link
Contributor Author

@urso
Thanks, I updated the pull-request accordingly. 🥂

@urso
Copy link

urso commented Feb 27, 2019

PR LGTM.

Seems like the CLA webhook is not responding. Double checking with CLA DB I did find you have signed the CLA yesterday.

@urso urso merged commit c5859d3 into elastic:master Feb 27, 2019
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.

2 participants