Skip to content

Commit 35c0b3e

Browse files
authored
Fix source highlighting in user defined type macros docs (#4169)
1 parent fac07e2 commit 35c0b3e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/mkdocs/docs/api/macros/nlohmann_define_type_intrusive.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ See examples below for the concrete generated code.
5959

6060
Consider the following complete example:
6161

62-
```cpp hl_lines="21"
62+
```cpp hl_lines="22"
6363
--8<-- "examples/nlohmann_define_type_intrusive_macro.cpp"
6464
```
6565

@@ -80,15 +80,15 @@ See examples below for the concrete generated code.
8080

8181
The macro is equivalent to:
8282

83-
```cpp hl_lines="21 22 23 24 25 26 27 28 29 30 31 32 33"
83+
```cpp hl_lines="22 23 24 25 26 27 28 29 30 31 32 33 34"
8484
--8<-- "examples/nlohmann_define_type_intrusive_explicit.cpp"
8585
```
8686

8787
??? example "Example (2): NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT"
8888

8989
Consider the following complete example:
9090

91-
```cpp hl_lines="21"
91+
```cpp hl_lines="22"
9292
--8<-- "examples/nlohmann_define_type_intrusive_with_default_macro.cpp"
9393
```
9494

@@ -108,7 +108,7 @@ See examples below for the concrete generated code.
108108

109109
The macro is equivalent to:
110110

111-
```cpp hl_lines="21 22 23 24 25 26 27 28 29 30 31 32 33 34"
111+
```cpp hl_lines="21 22 23 24 25 26 27 28 29 30 31 32 33 34 35"
112112
--8<-- "examples/nlohmann_define_type_intrusive_with_default_explicit.cpp"
113113
```
114114

docs/mkdocs/docs/api/macros/nlohmann_define_type_non_intrusive.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ See examples below for the concrete generated code.
6060

6161
Consider the following complete example:
6262

63-
```cpp hl_lines="15"
63+
```cpp hl_lines="16"
6464
--8<-- "examples/nlohmann_define_type_non_intrusive_macro.cpp"
6565
```
6666

@@ -80,15 +80,15 @@ See examples below for the concrete generated code.
8080

8181
The macro is equivalent to:
8282

83-
```cpp hl_lines="15 16 17 18 19 20 21 22 23 24 25 26 27"
83+
```cpp hl_lines="16 17 18 19 20 21 22 23 24 25 26 27 28"
8484
--8<-- "examples/nlohmann_define_type_non_intrusive_explicit.cpp"
8585
```
8686

8787
??? example "Example (2): NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT"
8888

8989
Consider the following complete example:
9090

91-
```cpp hl_lines="20"
91+
```cpp hl_lines="21"
9292
--8<-- "examples/nlohmann_define_type_non_intrusive_with_default_macro.cpp"
9393
```
9494

@@ -109,7 +109,7 @@ See examples below for the concrete generated code.
109109

110110
The macro is equivalent to:
111111

112-
```cpp hl_lines="20 21 22 23 24 25 26 27 28 29 30 31 32 33"
112+
```cpp hl_lines="21 22 23 24 25 26 27 28 29 30 31 32 33 34"
113113
--8<-- "examples/nlohmann_define_type_non_intrusive_with_default_explicit.cpp"
114114
```
115115

0 commit comments

Comments
 (0)