From 79ebb6beba6f0a83c0df80bb44c6d0251dea2aa6 Mon Sep 17 00:00:00 2001 From: Lara Scheidegger Date: Fri, 29 Jun 2012 14:25:30 +0000 Subject: [PATCH] CPP: Comment fix, including small fix to sample code. --- cpp/src/phonenumbers/phonenumberutil.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cpp/src/phonenumbers/phonenumberutil.h b/cpp/src/phonenumbers/phonenumberutil.h index d21542aa1..3aeb1fb71 100644 --- a/cpp/src/phonenumbers/phonenumberutil.h +++ b/cpp/src/phonenumbers/phonenumberutil.h @@ -161,7 +161,7 @@ class PhoneNumberUtil : public Singleton { // DEFAULT_REGIONS_. // // The PhoneNumberUtil is implemented as a singleton. Therefore, calling - // getInstance multiple times will only result in one instance being created. + // GetInstance multiple times will only result in one instance being created. #ifdef USE_GOOGLE_BASE static PhoneNumberUtil* GetInstance(); #endif @@ -194,7 +194,7 @@ class PhoneNumberUtil : public Singleton { // a way that the resultant subscriber number should be diallable, at least on // some devices. An example of how this could be used: // - // const PhoneNumberUtil& phone_util(PhoneNumberUtil::GetInstance()); + // const PhoneNumberUtil& phone_util(*PhoneNumberUtil::GetInstance()); // PhoneNumber number; // phone_util.Parse("16502530000", "US", &number); // string national_significant_number; @@ -213,8 +213,8 @@ class PhoneNumberUtil : public Singleton { // subscriber_number = national_significant_number; // } // - // N.B.: area code is a very ambiguous concept, so the I18N team generally - // recommends against using it for most purposes, but recommends using the + // N.B.: area code is a very ambiguous concept, so the authors generally + // recommend against using it for most purposes, but recommend using the // more general national_number instead. Read the following carefully before // deciding to use this method: // @@ -237,7 +237,7 @@ class PhoneNumberUtil : public Singleton { // there is a subscriber number part that follows. An example of how this // could be used: // - // const PhoneNumberUtil& phone_util(PhoneNumberUtil::GetInstance()); + // const PhoneNumberUtil& phone_util(*PhoneNumberUtil::GetInstance()); // PhoneNumber number; // phone_util.Parse("16502530000", "US", &number); // string national_significant_number;