Skip to content

Commit

Permalink
📚 Fix SearchResult#to_s rdoc example
Browse files Browse the repository at this point in the history
  • Loading branch information
nevans committed Dec 16, 2024
1 parent 849c360 commit 3b48aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/net/imap/search_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ def inspect
# data.to_s("SORT") # => "* SORT 2 8 32 128 256 512"
# data.to_s(nil) # => "2 8 32 128 256 512"
#
# data = Net::IMAP::SearchResult[1, 3, 16, 1024, modseq: 2048].to_s
# data = Net::IMAP::SearchResult[1, 3, 16, 1024, modseq: 2048]
# data.to_s # => "* SEARCH 1 3 16 1024 (MODSEQ 2048)"
# data.to_s("SORT") # => "* SORT 1 3 16 1024 (MODSEQ 2048)"
# data.to_s # => "1 3 16 1024 (MODSEQ 2048)"
# data.to_s(nil) # => "1 3 16 1024 (MODSEQ 2048)"
#
def to_s(type = "SEARCH")
str = +""
Expand Down

0 comments on commit 3b48aeb

Please sign in to comment.