We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e73c37 + fa7ecc5 commit dee3ba7Copy full SHA for dee3ba7
lightning-invoice/src/lib.rs
@@ -1510,8 +1510,8 @@ impl TaggedField {
1510
1511
impl Description {
1512
1513
- /// Creates a new `Description` if `description` is at most 1023 __bytes__ long,
1514
- /// returns [`CreationError::DescriptionTooLong`] otherwise
+ /// Creates a new `Description` if `description` is at most 1023 * 5 bits (i.e., 639 bytes)
+ /// long, and returns [`CreationError::DescriptionTooLong`] otherwise.
1515
///
1516
/// Please note that single characters may use more than one byte due to UTF8 encoding.
1517
pub fn new(description: String) -> Result<Description, CreationError> {
0 commit comments