Skip to content

Commit

Permalink
refactor compound conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
scotthart committed Apr 25, 2024
1 parent 6c5a0ca commit f665ff2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion google/cloud/speech/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void ConfigureRecognizer(google::cloud::speech::v2::RecognizeRequest& request) {

int main(int argc, char* argv[]) try {
auto constexpr kDefaultUri = "gs://cloud-samples-data/speech/hello.wav";
if (argc < 3 || argc > 4) {
if (argc != 3 && argc != 4) {
std::cerr << "Usage: " << argv[0] << " project <region>|global [gcs-uri]\n"
<< " Specify the region desired or \"global\"\n"
<< " The gcs-uri must be in gs://... format. It defaults to "
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/speech/quickstart/quickstart.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void ConfigureRecognizer(google::cloud::speech::v2::RecognizeRequest& request) {

int main(int argc, char* argv[]) try {
auto constexpr kDefaultUri = "gs://cloud-samples-data/speech/hello.wav";
if (argc < 3 || argc > 4) {
if (argc != 3 && argc != 4) {
std::cerr << "Usage: " << argv[0] << " project <region>|global [gcs-uri]\n"
<< " Specify the region desired or \"global\"\n"
<< " The gcs-uri must be in gs://... format. It defaults to "
Expand Down

0 comments on commit f665ff2

Please sign in to comment.