mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
📝 minor fixes (#3592)
This commit is contained in:
@ -132,4 +132,8 @@ By default, `#!cpp JSON_DISABLE_ENUM_SERIALIZATION` is not defined.
|
|||||||
|
|
||||||
## See also
|
## See also
|
||||||
|
|
||||||
- [`NLOHMANN_JSON_SERIALIZE_ENUM`](nlohmann_json_serialize_enum.md)
|
- [`NLOHMANN_JSON_SERIALIZE_ENUM`](nlohmann_json_serialize_enum.md)
|
||||||
|
|
||||||
|
## Version history
|
||||||
|
|
||||||
|
- Added in version 3.11.0.
|
||||||
|
@ -112,7 +112,7 @@ def check_structure():
|
|||||||
if line == '```cpp' and section_idx == -1:
|
if line == '```cpp' and section_idx == -1:
|
||||||
in_initial_code_example = True
|
in_initial_code_example = True
|
||||||
|
|
||||||
if in_initial_code_example and line.startswith('//'):
|
if in_initial_code_example and line.startswith('//') and line not in ['// since C++20', '// until C++20']:
|
||||||
# check numbering of overloads
|
# check numbering of overloads
|
||||||
if any(map(str.isdigit, line)):
|
if any(map(str.isdigit, line)):
|
||||||
number = int(re.findall(r'\d+', line)[0])
|
number = int(re.findall(r'\d+', line)[0])
|
||||||
@ -121,7 +121,7 @@ def check_structure():
|
|||||||
last_overload = number
|
last_overload = number
|
||||||
|
|
||||||
if any(map(str.isdigit, line)) and '(' not in line:
|
if any(map(str.isdigit, line)) and '(' not in line:
|
||||||
report('style/numbering', f'{file}:{lineno+1}', 'number should be in parentheses: {line}')
|
report('style/numbering', f'{file}:{lineno+1}', f'number should be in parentheses: {line}')
|
||||||
|
|
||||||
if line == '```' and in_initial_code_example:
|
if line == '```' and in_initial_code_example:
|
||||||
in_initial_code_example = False
|
in_initial_code_example = False
|
||||||
|
Reference in New Issue
Block a user