diff --git a/examples/dotnet/Examples/Compact.cs b/examples/dotnet/Examples/Compact.cs index 9ec0c5d781..006360a56a 100644 --- a/examples/dotnet/Examples/Compact.cs +++ b/examples/dotnet/Examples/Compact.cs @@ -18,7 +18,7 @@ public async Task Compacts() /* totalBytes refers to the size of the file on disk in * bytes (data + free space). * usedBytes refers to the number of bytes used by - * the file + * the realm file */ // Compact if the file is over 100MB in size and less diff --git a/examples/ios/Examples/Compacting.m b/examples/ios/Examples/Compacting.m index 3abedd4c58..6ac8ac2749 100644 --- a/examples/ios/Examples/Compacting.m +++ b/examples/ios/Examples/Compacting.m @@ -21,10 +21,10 @@ - (void)testCompacting { }; NSError *error = nil; - // The database is compacted on the first open if the configuration block conditions were met. + // Realm is compacted on the first open if the configuration block conditions were met. RLMRealm *realm = [RLMRealm realmWithConfiguration:config error:&error]; if (error) { - // handle error compacting or opening database + // handle error compacting or opening Realm } // :snippet-end: } diff --git a/examples/ios/Examples/Compacting.swift b/examples/ios/Examples/Compacting.swift index c21506ad40..46d934d236 100644 --- a/examples/ios/Examples/Compacting.swift +++ b/examples/ios/Examples/Compacting.swift @@ -14,10 +14,10 @@ class Compacting: XCTestCase { return (totalBytes > oneHundredMB) && (Double(usedBytes) / Double(totalBytes)) < 0.5 }) do { - // The database is compacted on the first open if the configuration block conditions were met. + // Realm is compacted on the first open if the configuration block conditions were met. let realm = try Realm(configuration: config) } catch { - // handle error compacting or opening the database + // handle error compacting or opening Realm } // :snippet-end: } @@ -34,11 +34,11 @@ class Compacting: XCTestCase { }) do { - // The database is compacted asynchronously on the first open if the + // Realm is compacted asynchronously on the first open if the // configuration block conditions were met. let realm = try await Realm(configuration: config) } catch { - // handle error compacting or opening the database + // handle error compacting or opening Realm } } // :snippet-end: diff --git a/source/examples/generated/code/start/Compacting.snippet.async-compact.swift b/source/examples/generated/code/start/Compacting.snippet.async-compact.swift index 1e54000e41..dc7249de8c 100644 --- a/source/examples/generated/code/start/Compacting.snippet.async-compact.swift +++ b/source/examples/generated/code/start/Compacting.snippet.async-compact.swift @@ -9,10 +9,10 @@ func testAsyncCompact() async { }) do { - // The database is compacted asynchronously on the first open if the + // Realm is compacted asynchronously on the first open if the // configuration block conditions were met. let realm = try await Realm(configuration: config) } catch { - // handle error compacting or opening the database + // handle error compacting or opening Realm } } diff --git a/source/examples/generated/code/start/Compacting.snippet.compacting.m b/source/examples/generated/code/start/Compacting.snippet.compacting.m index e8171547d7..53b3ced7ab 100644 --- a/source/examples/generated/code/start/Compacting.snippet.compacting.m +++ b/source/examples/generated/code/start/Compacting.snippet.compacting.m @@ -9,8 +9,8 @@ }; NSError *error = nil; -// The database is compacted on the first open if the configuration block conditions were met. +// Realm is compacted on the first open if the configuration block conditions were met. RLMRealm *realm = [RLMRealm realmWithConfiguration:config error:&error]; if (error) { - // handle error compacting or opening database + // handle error compacting or opening Realm } diff --git a/source/examples/generated/code/start/Compacting.snippet.compacting.swift b/source/examples/generated/code/start/Compacting.snippet.compacting.swift index e85fcc26d4..50abf2c236 100644 --- a/source/examples/generated/code/start/Compacting.snippet.compacting.swift +++ b/source/examples/generated/code/start/Compacting.snippet.compacting.swift @@ -7,8 +7,8 @@ let config = Realm.Configuration(shouldCompactOnLaunch: { totalBytes, usedBytes return (totalBytes > oneHundredMB) && (Double(usedBytes) / Double(totalBytes)) < 0.5 }) do { - // The database is compacted on the first open if the configuration block conditions were met. + // Realm is compacted on the first open if the configuration block conditions were met. let realm = try Realm(configuration: config) } catch { - // handle error compacting or opening the database + // handle error compacting or opening Realm } diff --git a/source/examples/generated/dotnet/Compact.snippet.config-compact.cs b/source/examples/generated/dotnet/Compact.snippet.config-compact.cs index 429b1bf6f4..8afcc1e75b 100644 --- a/source/examples/generated/dotnet/Compact.snippet.config-compact.cs +++ b/source/examples/generated/dotnet/Compact.snippet.config-compact.cs @@ -5,7 +5,7 @@ /* totalBytes refers to the size of the file on disk in * bytes (data + free space). * usedBytes refers to the number of bytes used by - * the file + * the realm file */ // Compact if the file is over 100MB in size and less