We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a73bf4 commit 5f5483aCopy full SHA for 5f5483a
1 file changed
c2rust-postprocess/postprocess/transforms/comments.py
@@ -132,7 +132,8 @@ def apply_ident(
132
Transfer exactly the comment lines listed below, in order; do not transfer any other
133
comments in the C function (they may come from inactive preprocessor regions) and do
134
not add new ones.
135
- Use Rust doc comment syntax (///) where appropriate (e.g., for function documentation).
+ Use Rust doc comment syntax (///) only for comments placed before the function signature;
136
+ inside the function body use plain // comments (/// before a statement does not compile).
137
Respond with the Rust function definition with the transferred comments; say nothing else.
138
""" # noqa: E501
139
prompt_text = dedent(prompt_text).strip()
0 commit comments