Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/file_exception' into file_exception
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Jul 22, 2022
2 parents d07c454 + 61409c3 commit 885abbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/mkdocs/docs/features/assertions.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ behavior and yields a runtime assertion.
### Reading from a null `FILE` pointer

Reading from a null `#!cpp FILE` pointer is undefined behavior and yields a runtime assertion. This can happen when
calling `#!cpp std::fopen` on a nonexisting file.
calling `#!cpp std::fopen` on a nonexistent file.

??? example "Example 4: Uninitialized iterator"

Expand All @@ -119,7 +119,7 @@ calling `#!cpp std::fopen` on a nonexisting file.

int main()
{
std::FILE* f = std::fopen("nonexisting_file.json", "r");
std::FILE* f = std::fopen("nonexistent_file.json", "r");
json j = json::parse(f);
}
```
Expand Down

0 comments on commit 885abbd

Please sign in to comment.