mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-02 11:10:27 +00:00
api-macro: fix section iteration
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
366b50dee7
commit
0a7cc08f3a
@ -512,7 +512,7 @@ pub(crate) fn api(_attr: TokenStream, item: TokenStream) -> Result<TokenStream,
|
||||
// If we have a doc comment, allow automatically inferring the description for the input and
|
||||
// output objects:
|
||||
if !doc_comment.is_empty() {
|
||||
let mut parts = doc_comment.splitn(2, "\nReturns:");
|
||||
let mut parts = doc_comment.split("\nReturns:");
|
||||
|
||||
if let Some(first) = parts.next() {
|
||||
if input_schema.description.is_none() {
|
||||
|
Loading…
Reference in New Issue
Block a user