Skip to content

Commit

Permalink
fix(databases): Fix code comment in SQL snippet (#972)
Browse files Browse the repository at this point in the history
SQL uses `--` for comments.
Use it for the code-focus comment as well.
It didn't work on the rendered page anyway.
  • Loading branch information
bugwelle authored Jun 3, 2024
1 parent 651692f commit 3776ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ CREATE TABLE Books (
author_ID INTEGER, -- generated foreign key field
...,
PRIMARY KEY(ID),
CONSTRAINT Books_author // [!code focus]
CONSTRAINT Books_author -- [!code focus]
FOREIGN KEY(author_ID) -- link generated foreign key field author_ID ...
REFERENCES Authors(ID) -- ... with primary key field ID of table Authors
ON UPDATE RESTRICT
Expand Down

0 comments on commit 3776ae2

Please sign in to comment.