Skip to content

Commit

Permalink
Doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Dec 29, 2024
1 parent 64d4ae0 commit e929e2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions doc/ref/jsonschema/jsonschema.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,7 @@ auto resolve = [](const jsoncons::uri& uri) -> json
std::cout << "Requested URI: " << uri.string() << "\n";
std::cout << "base: " << uri.base().string() << ", path: " << uri.path() << "\n\n";

std::string pathname = "./input/jsonschema";
pathname += std::string(uri.path());
std::string pathname = "./input/jsonschema" + std::string(uri.path());

std::fstream is(pathname.c_str());
if (!is)
Expand Down
3 changes: 1 addition & 2 deletions examples/src/jsonschema_examples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ void resolve_uri_example()
std::cout << "Requested URI: " << uri.string() << "\n";
std::cout << "base: " << uri.base().string() << ", path: " << uri.path() << "\n\n";

std::string pathname = "./input/jsonschema";
pathname += std::string(uri.path());
std::string pathname = "./input/jsonschema" + std::string(uri.path());

std::fstream is(pathname.c_str());
if (!is)
Expand Down

0 comments on commit e929e2d

Please sign in to comment.