Skip to content

Commit

Permalink
(DOCSP-37136): Fix truncated code example (#3203)
Browse files Browse the repository at this point in the history
## Pull Request Info

Jira ticket: https://jira.mongodb.org/browse/DOCSP-37136

- [Configure & Open a
Realm](https://preview-mongodbdacharyc.gatsbyjs.io/realm/DOCSP-37136/sdk/cpp/realm-files/configure-and-open-a-realm/#open-a-realm-at-a-file-path):
Fixed truncated "Open a Realm at a File Path" code example.

### Reminder Checklist

Before merging your PR, make sure to check a few things.

- [ ] Did you tag pages appropriately?
  - genre
  - meta.keywords
  - meta.description
- [x] Describe your PR's changes in the Release Notes section
- [ ] Create a Jira ticket for related docs-app-services work, if any

### Release Notes

- **C++ SDK**
- Realm Files/Configure & Open a Realm: Fixed truncated "Open a Realm at
a File Path" code example.

### Review Guidelines


[REVIEWING.md](https://github.com/mongodb/docs-realm/blob/master/REVIEWING.md)
  • Loading branch information
dacharyc committed Mar 18, 2024
1 parent 5b312ce commit 4ff17e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/cpp/local/crud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ TEST_CASE("Define model example", "[write]") {
TEST_CASE("Ignored property example", "[write]") {
// :snippet-start: open-db-at-path
auto relative_realm_path_directory = "custom_path_directory/";
std::filesystem::create_directories(
relative_realm_path_directory); // :remove:
std::filesystem::create_directories(relative_realm_path_directory);
// Construct a path
std::filesystem::path path =
std::filesystem::current_path().append(relative_realm_path_directory);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
auto relative_realm_path_directory = "custom_path_directory/";
std::filesystem::create_directories(
std::filesystem::create_directories(relative_realm_path_directory);
// Construct a path
std::filesystem::path path =
std::filesystem::current_path().append(relative_realm_path_directory);
Expand Down

0 comments on commit 4ff17e0

Please sign in to comment.