Refer to TLV-TYPE as "number" instead of "code"

refs #2880

Change-Id: Ie3bd9dc4cb5ca4c3f7aafeed37266adba88b82fb
diff --git a/src/encoding/tlv.hpp b/src/encoding/tlv.hpp
index fbe871f..49d61e5 100644
--- a/src/encoding/tlv.hpp
+++ b/src/encoding/tlv.hpp
@@ -57,6 +57,9 @@
   }
 };
 
+/** @brief TLV-TYPE numbers defined in NDN Packet Format
+ *  @sa https://named-data.net/doc/ndn-tlv/types.html
+ */
 enum {
   Interest      = 5,
   Data          = 6,
@@ -103,11 +106,10 @@
 std::ostream&
 operator<<(std::ostream& os, const SignatureTypeValue& signatureType);
 
-/** @brief TLV codes for SignatureInfo features
+/** @brief TLV-TYPE numbers for SignatureInfo features
  *  @sa docs/tutorials/certificate-format.rst
  */
 enum {
-  // SignatureInfo TLVs
   ValidityPeriod = 253,
   NotBefore = 254,
   NotAfter = 255,
@@ -404,7 +406,7 @@
 {
   uint64_t type = readVarNumber(begin, end);
   if (type > std::numeric_limits<uint32_t>::max()) {
-    BOOST_THROW_EXCEPTION(Error("TLV-TYPE code exceeds allowed maximum"));
+    BOOST_THROW_EXCEPTION(Error("TLV-TYPE number exceeds allowed maximum"));
   }
 
   return static_cast<uint32_t>(type);