docs: correct assertion conditions and remove stale diagnostic locations (#6131)

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Aditya Singh Bakawat authored and GitHub committed 2026-11-18 08:56:51 +01:00
1 parent 0ac14610d6
commit 8c3335d41f
2 files changed
+11 -25

No files matched your search

+3 -5
View File
@@ -47,11 +47,9 @@ Therefore, assertions can be switched off by defining `NDEBUG`.
}
```
Output:
```
Assertion failed: (m_value.object->find(key) != m_value.object->end()), function operator[], file json.hpp, line 2144.
```
The assertion `#!cpp it != m_data.m_value.object->end()` fails in `#!cpp operator[]`.
The exact diagnostic format, source filename, and line number depend on the platform,
library version, and whether the single-header or multi-header version is used.
??? example "Example: user-defined behavior"