Skip to content

Commit 90483b4

Browse files
authored
Minor documentation changes (#1156)
* Add notes to `defaultCache.h`. * Fix inconsistencies in the documentation (examples). Relates-To: OLPEDGE-2370 Signed-off-by: Halyna Dumych <[email protected]>
1 parent 5db27aa commit 90483b4

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

docs/dataservice-read-catalog-example.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ After building and running the example project, you see the following informatio
5050

5151
- `edge-example-catalog` – a catalog description.
5252
- `versioned-world-layer` – a layer description.
53-
- `Request partition data - Success, data size - 3375` - a success message that displays the size of data retrieved from the requested partition.
53+
- `Request partition data - Success, data size - 3375` a success message that displays the size of data retrieved from the requested partition.
5454

5555
```bash
5656
[INFO] read-example - Catalog description: edge-example-catalog
@@ -66,7 +66,7 @@ To integrate the Data SDK libraries in the Android example project:
6666

6767
- [Set up prerequisites](#prerequisites-android)
6868
- [Build the Data SDK](#build-sdk-android)
69-
- [Build and Run the APK](#build-and-run-android)
69+
- [Build and run the APK](#build-and-run-android)
7070

7171
### <a name="prerequisites-android"></a>Prerequisites
7272

@@ -416,4 +416,4 @@ if (data_response.IsSuccessful()) {
416416
}
417417
```
418418

419-
The `DataResult` class contains the raw partition data that is an alias for a `std::shared_ptr<std::vector<unsigned char>>`.
419+
The `DataResult` class contains raw partition data that is an alias for a `std::shared_ptr<std::vector<unsigned char>>`.

docs/dataservice-write-example.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ To integrate the Data SDK libraries in the Android example project:
5656

5757
- [Set up prerequisites](#prerequisites-android)
5858
- [Build the Data SDK](#build-sdk-android)
59-
- [Build and Run the APK](#build-and-run-android)
59+
- [Build and run the APK](#build-and-run-android)
6060

6161
### <a name="prerequisites-android"></a>Prerequisites
6262

@@ -106,7 +106,7 @@ To integrate the Data SDK libraries in the iOS example application written in th
106106

107107
- [Set up prerequisites](#prerequisites-ios)
108108
- [Build the Data SDK](#build-sdk-ios)
109-
- [Build and Run the Application](#build-and-run-ios)
109+
- [Build and run the Application](#build-and-run-ios)
110110

111111
### <a name="prerequisites-ios"></a>Prerequisites
112112

olp-cpp-sdk-core/include/olp/core/cache/DefaultCache.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ class CORE_API DefaultCache : public KeyValueCache {
8383
*
8484
* @return `StorageOpenResult` if there are problems opening any of
8585
* the provided paths on the disk.
86+
*
87+
* @note If the cache cannot be opened or repaired, it is deleted.
8688
*/
8789
StorageOpenResult Open();
8890

@@ -92,8 +94,10 @@ class CORE_API DefaultCache : public KeyValueCache {
9294
* @param type The type of cache to open.
9395
*
9496
* @return `Success` if the cache is created or already open, `NotReady` if
95-
* DefaultCache is closed and `OpenDiskPathFailure` if there are problems
97+
* `DefaultCache` is closed, and `OpenDiskPathFailure` if there are problems
9698
* opening the provided path on the disk.
99+
*
100+
* @note If the cache cannot be opened or repaired, it is deleted.
97101
*/
98102
StorageOpenResult Open(CacheType type);
99103

0 commit comments

Comments
 (0)