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

Bring #[description] in line with rust's #[doc] #723

Closed
HeapUnderfl0w opened this issue Sep 23, 2019 · 1 comment
Closed

Bring #[description] in line with rust's #[doc] #723

HeapUnderfl0w opened this issue Sep 23, 2019 · 1 comment
Labels
command_attr Related to the `command_attr` crate. feature-request A new requested functionality. framework Related to the `framework` and `framework::standard` modules and/or the `command_attr` crate

Comments

@HeapUnderfl0w
Copy link

Rust's doc attribute can be used multiple times to add newlines without awkwardly splitting the strings over newlines:

#[doc = "This is"]
#[doc = " a "]
#[doc = "doc comment"]

is equivalent to

#[doc = "This is\n a \ndoc comment"]

Offical Docs
I would like that the #[description] macro would support the same (or at least a similar) behavior.

@arqunis arqunis added command_attr Related to the `command_attr` crate. feature-request A new requested functionality. framework Related to the `framework` and `framework::standard` modules and/or the `command_attr` crate labels Sep 23, 2019
@arqunis
Copy link
Member

arqunis commented Sep 26, 2019

Fixed in #724.

@arqunis arqunis closed this as completed Sep 26, 2019
arqunis added a commit to arqunis/serenity that referenced this issue Sep 27, 2019
arqunis added a commit to arqunis/serenity that referenced this issue Nov 3, 2019
arqunis added a commit to arqunis/serenity that referenced this issue Nov 22, 2019
arqunis added a commit to arqunis/serenity that referenced this issue Nov 26, 2019
arqunis added a commit to arqunis/serenity that referenced this issue Dec 13, 2019
LeSeulArtichaut pushed a commit to LeSeulArtichaut/serenity that referenced this issue Dec 13, 2019
arqunis added a commit to arqunis/serenity that referenced this issue Jan 13, 2020
arqunis added a commit to arqunis/serenity that referenced this issue Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command_attr Related to the `command_attr` crate. feature-request A new requested functionality. framework Related to the `framework` and `framework::standard` modules and/or the `command_attr` crate
Projects
None yet
Development

No branches or pull requests

2 participants