Skip to content

Commit e6d6c1d

Browse files
authored
🔀 Merge pull request #372 from ruby/fix-rdoc-issues
📚 Fix rdoc issues
2 parents 2fdc80f + 660d5aa commit e6d6c1d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/net/imap.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,7 +1603,7 @@ def list(refname, mailbox)
16031603
#
16041604
# ==== Capabilities
16051605
#
1606-
# The server's capabilities must include +NAMESPACE+
1606+
# The server's capabilities must include either +IMAP4rev2+ or +NAMESPACE+
16071607
# [RFC2342[https://tools.ietf.org/html/rfc2342]].
16081608
def namespace
16091609
synchronize do
@@ -1904,7 +1904,7 @@ def close
19041904
#
19051905
# ==== Capabilities
19061906
#
1907-
# The server's capabilities must include +UNSELECT+
1907+
# The server's capabilities must include either +IMAP4rev2+ or +UNSELECT+
19081908
# [RFC3691[https://tools.ietf.org/html/rfc3691]].
19091909
def unselect
19101910
send_command("UNSELECT")
@@ -2647,7 +2647,7 @@ def uid_copy(set, mailbox)
26472647
#
26482648
# ==== Capabilities
26492649
#
2650-
# The server's capabilities must include +MOVE+
2650+
# The server's capabilities must include either +IMAP4rev2+ or +MOVE+
26512651
# [RFC6851[https://tools.ietf.org/html/rfc6851]].
26522652
#
26532653
# If +UIDPLUS+ [RFC4315[https://www.rfc-editor.org/rfc/rfc4315.html]] is
@@ -2889,7 +2889,7 @@ def enable(*capabilities)
28892889
#
28902890
# ==== Capabilities
28912891
#
2892-
# The server's capabilities must include +IDLE+
2892+
# The server's capabilities must include either +IMAP4rev2+ or +IDLE+
28932893
# [RFC2177[https://tools.ietf.org/html/rfc2177]].
28942894
def idle(timeout = nil, &response_handler)
28952895
raise LocalJumpError, "no block given" unless response_handler

lib/net/imap/search_result.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ def inspect
100100
# data.to_s("SORT") # => "* SORT 2 8 32 128 256 512"
101101
# data.to_s(nil) # => "2 8 32 128 256 512"
102102
#
103-
# data = Net::IMAP::SearchResult[1, 3, 16, 1024, modseq: 2048].to_s
103+
# data = Net::IMAP::SearchResult[1, 3, 16, 1024, modseq: 2048]
104104
# data.to_s # => "* SEARCH 1 3 16 1024 (MODSEQ 2048)"
105105
# data.to_s("SORT") # => "* SORT 1 3 16 1024 (MODSEQ 2048)"
106-
# data.to_s # => "1 3 16 1024 (MODSEQ 2048)"
106+
# data.to_s(nil) # => "1 3 16 1024 (MODSEQ 2048)"
107107
#
108108
def to_s(type = "SEARCH")
109109
str = +""

0 commit comments

Comments
 (0)