Skip to content

Commit e96ba55

Browse files
authored
🔀 Merge pull request #638 from ruby/minor-documentation-fixes
📚 Minor documentation fixes
2 parents f473309 + ee7d9d3 commit e96ba55

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/net/imap.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -642,9 +642,9 @@ module Net
642642
# RFC 5322, DOI 10.17487/RFC5322, October 2008,
643643
# <https://www.rfc-editor.org/info/rfc5322>.
644644
#
645-
# <em>Note: obsoletes</em>
646-
# RFC-2822[https://www.rfc-editor.org/rfc/rfc2822]<em> (April 2001) and</em>
647-
# RFC-822[https://www.rfc-editor.org/rfc/rfc822]<em> (August 1982).</em>
645+
# *NOTE*: obsoletes
646+
# RFC-2822[https://www.rfc-editor.org/rfc/rfc2822] (April 2001) and
647+
# RFC-822[https://www.rfc-editor.org/rfc/rfc822] (August 1982).
648648
#
649649
# [CHARSET[https://www.rfc-editor.org/rfc/rfc2978]]::
650650
# Freed, N. and J. Postel, "IANA Charset Registration Procedures", BCP 19,
@@ -751,8 +751,8 @@ module Net
751751
# Gulbrandsen, A. and N. Freed, Ed., "Internet Message Access Protocol
752752
# (\IMAP) - MOVE Extension", RFC 6851, DOI 10.17487/RFC6851, January 2013,
753753
# <https://www.rfc-editor.org/info/rfc6851>.
754-
# [UTF8=ACCEPT[https://www.rfc-editor.org/rfc/rfc6855]]::
755-
# [UTF8=ONLY[https://www.rfc-editor.org/rfc/rfc6855]]::
754+
# [{UTF8=ACCEPT}[https://www.rfc-editor.org/rfc/rfc6855]]::
755+
# [{UTF8=ONLY}[https://www.rfc-editor.org/rfc/rfc6855]]::
756756
# Resnick, P., Ed., Newman, C., Ed., and S. Shen, Ed.,
757757
# "IMAP Support for UTF-8", RFC 6855, DOI 10.17487/RFC6855, March 2013,
758758
# <https://www.rfc-editor.org/info/rfc6855>.

lib/net/imap/data_encoding.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ def valid_number64?(num)
183183
end
184184

185185
# Check if argument is a valid 'number64' according to RFC 9051
186-
# number64 = 1*DIGIT
186+
# nz-number64 = digit-nz *DIGIT
187187
# ; Unsigned 63-bit integer
188-
# ; (0 <= n <= 9,223,372,036,854,775,807)
188+
# ; (0 < n <= 9,223,372,036,854,775,807)
189189
def valid_nz_number64?(num)
190190
0 < num && num <= 0x7fff_ffff_ffff_ffff
191191
end

0 commit comments

Comments
 (0)