Browse Source

[trac1113] minor comments fix

chenzhengzhang 14 years ago
parent
commit
83f8d6de76

+ 6 - 5
src/lib/dns/rdata/generic/minfo_14.h

@@ -39,7 +39,8 @@ public:
 
     /// \brief Define the assignment operator.
     ///
-    /// This method never throws an exception.
+    /// \exception std::bad_alloc Memory allocation fails in copying
+    /// internal member variables (this should be very rare).
     MINFO& operator=(const MINFO& source);
 
     /// \brief Return the value of the rmailbox field.
@@ -52,11 +53,11 @@ public:
     /// \c NS::getNSName()), this method constructs a new \c Name object
     /// and returns it, instead of returning a reference to a \c Name object
     /// internally maintained in the class (which is a private member).
-    /// This is based on the observation that this method will be rarely used
-    /// and even when it's used it will not be in a performance context
+    /// This is based on the observation that this method will be rarely
+    /// used and even when it's used it will not be in a performance context
     /// (for example, a recursive resolver won't need this field in its
-    /// resolution process).  By returning a new object we have flexibility of
-    /// changing the internal representation without the risk of changing
+    /// resolution process).  By returning a new object we have flexibility
+    /// of changing the internal representation without the risk of changing
     /// the interface or method property.
     /// The same note applies to the \c getEmailbox() method.
     Name getRmailbox() const { return (rmailbox_); }

+ 0 - 1
src/lib/dns/tests/rdata_minfo_unittest.cc

@@ -39,7 +39,6 @@ const char* const too_long_label = "01234567890123456789012345678901234567"
 
 namespace {
 class Rdata_MINFO_Test : public RdataTest {
-    // there's nothing to specialize
 public:
     Rdata_MINFO_Test():
         rdata_minfo(string(minfo_txt)), rdata_minfo2(string(minfo_txt2)) {}

+ 1 - 1
src/lib/dns/tests/testdata/rdata_minfo_toWireUncompressed2.spec

@@ -1,5 +1,5 @@
 #
-# A simplest form of MINFO: all default parameters
+# A simplest form of MINFO: custom rmailbox and default emailbox
 #
 [custom]
 sections: minfo