Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit 4c33b4a

Browse files
authored
docs(samples): fixed comment (#726)
1 parent 21c9ae1 commit 4c33b4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/snippets/src/main/java/kms/DisableKeyVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void disableKeyVersion(
6161
// Create a field mask of updated values.
6262
FieldMask fieldMask = FieldMaskUtil.fromString("state");
6363

64-
// Destroy the key version.
64+
// Disable the key version.
6565
CryptoKeyVersion response = client.updateCryptoKeyVersion(keyVersion, fieldMask);
6666
System.out.printf("Disabled key version: %s%n", response.getName());
6767
}

samples/snippets/src/main/java/kms/EnableKeyVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void enableKeyVersion(
6161
// Create a field mask of updated values.
6262
FieldMask fieldMask = FieldMaskUtil.fromString("state");
6363

64-
// Destroy the key version.
64+
// Enable the key version.
6565
CryptoKeyVersion response = client.updateCryptoKeyVersion(keyVersion, fieldMask);
6666
System.out.printf("Enabled key version: %s%n", response.getName());
6767
}

0 commit comments

Comments
 (0)