Skip to content

Commit 25bc8e3

Browse files
committed
📚 Fix a few documentation mistakes
`#fetch` returns an empty array, rather than nil, since #192.
1 parent a9459de commit 25bc8e3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/net/imap.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ module Net
127127
# end
128128
#
129129
# # Support for "UTF8=ACCEPT" implies support for "ENABLE"
130-
# imap.enable :utf8 if imap.auth_capable?("UTF8=ACCEPT")
130+
# imap.enable :utf8 if imap.capable?("UTF8=ACCEPT")
131131
#
132132
# namespaces = imap.namespace if imap.capable?(:namespace)
133133
# mbox_prefix = namespaces&.personal&.first&.prefix || ""
@@ -1886,8 +1886,7 @@ def uid_search(keys, charset = nil)
18861886
# +attr+ is a list of attributes to fetch; see the documentation
18871887
# for FetchData for a list of valid attributes.
18881888
#
1889-
# The return value is an array of FetchData or nil
1890-
# (instead of an empty array) if there is no matching message.
1889+
# The return value is an array of FetchData.
18911890
#
18921891
# Related: #uid_search, FetchData
18931892
#

0 commit comments

Comments
 (0)