Skip to content

Commit

Permalink
use @generated mark in files created by sea-orm-codegen (#2199)
Browse files Browse the repository at this point in the history
This makes it easier for external tools to identify these files as
generated and treat them differently according to their own
configuration.
  • Loading branch information
RafDevX authored Apr 17, 2024
1 parent a069d46 commit c59e28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sea-orm-codegen/src/entity/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ impl EntityWriter {
pub fn write_doc_comment(lines: &mut Vec<String>) {
let ver = env!("CARGO_PKG_VERSION");
let comments = vec![format!(
"//! `SeaORM` Entity. Generated by sea-orm-codegen {ver}"
"//! `SeaORM` Entity, @generated by sea-orm-codegen {ver}"
)];
lines.extend(comments);
lines.push("".to_owned());
Expand Down

0 comments on commit c59e28f

Please sign in to comment.