Apply suggestions from code review

Co-authored-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com>
This commit is contained in:
Niels Lohmann 2022-08-17 22:34:08 +02:00
parent d8e2680abc
commit b73c342c2c
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 6 additions and 6 deletions

View File

@ -13,6 +13,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: falbrechtskirchinger/labeler@master - uses: srvaroa/labeler@master
env: env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -1,11 +1,11 @@
# Migration Guide # Migration Guide
This page collects some guidelines how to future-proof your code for future versions of this library. This page collects some guidelines on how to future-proof your code for future versions of this library.
## Replace deprecated functions ## Replace deprecated functions
The following functions have been deprecated in earlier versions and will be removed in the next major version (i.e., The following functions have been deprecated and will be removed in the next major version (i.e., 4.0.0). All
4.0.0). All deprecations are annotated with deprecations are annotated with
[`HEDLEY_DEPRECATED_FOR`](https://nemequ.github.io/hedley/api-reference.html#HEDLEY_DEPRECATED_FOR) to report which [`HEDLEY_DEPRECATED_FOR`](https://nemequ.github.io/hedley/api-reference.html#HEDLEY_DEPRECATED_FOR) to report which
function to use instead. function to use instead.
@ -148,12 +148,12 @@ function to use instead.
- The legacy comparison behavior for discarded values is deprecated since 3.11.0. It is already disabled by default and - The legacy comparison behavior for discarded values is deprecated since 3.11.0. It is already disabled by default and
can still be enabled by defining can still be enabled by defining
[`JSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON`](../api/macros/json_use_legacy_discarded_value_comparison.md). [`JSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON`](../api/macros/json_use_legacy_discarded_value_comparison.md) to `1`.
=== "Deprecated" === "Deprecated"
```cpp ```cpp
#define JSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON #define JSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON 1
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
``` ```