Skip to content

Commit

Permalink
📚 Fix a few documentation mistakes
Browse files Browse the repository at this point in the history
`#fetch` returns an empty array, rather than nil, since #192.
  • Loading branch information
nevans committed Oct 5, 2023
1 parent a9459de commit 0845916
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/net/imap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ module Net
# end
#
# # Support for "UTF8=ACCEPT" implies support for "ENABLE"
# imap.enable :utf8 if imap.auth_capable?("UTF8=ACCEPT")
# imap.enable :utf8 if imap.capable?("UTF8=ACCEPT")
#
# namespaces = imap.namespace if imap.capable?(:namespace)
# mbox_prefix = namespaces&.personal&.first&.prefix || ""
Expand Down Expand Up @@ -1886,8 +1886,7 @@ def uid_search(keys, charset = nil)
# +attr+ is a list of attributes to fetch; see the documentation
# for FetchData for a list of valid attributes.
#
# The return value is an array of FetchData or nil
# (instead of an empty array) if there is no matching message.
# The return value is an array of FetchData.
#
# Related: #uid_search, FetchData
#
Expand Down

0 comments on commit 0845916

Please sign in to comment.