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

dbus: fix deprecated marks and docs #369

Merged
merged 1 commit into from
May 3, 2021
Merged

Conversation

kolyshkin
Copy link
Contributor

  1. Fix Deprecated: annocations. They must be at the start of a new
    paragraph (IOW it needs an empty line before), otherwise tools
    (linters etc.) don't see them. Ref: https://github.com/golang/go/wiki/Deprecated

  2. It is weird that the deprecated functions are documented, while
    the non-deprecated ones just refer to the deprecated ones.
    Move the documentation to non-deprecated functions.

  3. Address some nits in docs:

    • add missing documentation for some methods;
    • add missing punctuation;
    • fix bad formatting (in particular, markdown is not supported);
    • minor rewording in a few places.

Fixes: 7172a8d ("dbus: add context-aware methods") PR #340
Fixes: c51f092 ("dbus: add context to open functions") PR #341

1. Fix "Deprecated:" annocations. They must be at the start of a new
   paragraph (IOW it needs an empty line before), otherwise tools
   (linters etc.) don't see them.

2. It is weird that the deprecated functions are documented, while
   the non-deprecated ones just refer to the deprecated ones. Move the
   documentation to non-deprecated functions.

3. Address some nits in docs:
   - add missing documentation for some methods;
   - add missing punctuation;
   - fix bad formatting (in particular, markdown is not supported);
   - minor rewording in a few places.

Fixes: 7172a8d ("dbus: add context-aware methods")
Fixes: c51f092 ("dbus: add context to open functions")
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@lucab
Copy link
Contributor

lucab commented May 3, 2021

Thanks for the cleanup, LGTM.

@lucab lucab enabled auto-merge May 3, 2021 07:14
@lucab lucab merged commit 777e73a into coreos:master May 3, 2021
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