Fix formatting of AI attribution instructions

markdown was wrong
This commit is contained in:
Frank Möhle
2026-04-11 23:52:19 +02:00
committed by GitHub
parent 14f2ca4223
commit 0198a614b9

View File

@@ -123,7 +123,7 @@ Refer to `docs/cpp.instructions.md` and `docs/web.instructions.md` for language-
### Attribution for AI-generated code
Using AI-generated code can hide the source of the inspiration / knowledge / sources it used.
- Document attribution of inspiration / knowledge / sources used in the code, e.g. link to GitHub repositories or other websites describing the principles / algorithms used.
- When a larger block of code is generated by an AI tool, embed it into `// AI: below section was generated by an AI` ... `// AI: end`` comments (see C++ guidelines).
- When a larger block of code is generated by an AI tool, embed it into `// AI: below section was generated by an AI` ... `// AI: end` comments (see C++ guidelines).
- Every non-trivial AI-generated function should have a brief comment describing what it does. Explain parameters when their names alone are not self-explanatory.
- AI-generated code must be well documented with meaningful comments that explain intent, assumptions, and non-obvious logic. Do not rephrase source code; explain concepts and reasoning.