Skip to content

Commit

Permalink
Fix example in Nokogiri::HTML::SAX::Parser: missing "mode" in File.read
Browse files Browse the repository at this point in the history
  • Loading branch information
rosenfeld committed Nov 6, 2013
1 parent 5d5d1c8 commit e92957c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nokogiri/html/sax/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module SAX
# end
#
# parser = Nokogiri::HTML::SAX::Parser.new(MyDoc.new)
# parser.parse(File.read(ARGV[0], 'rb'))
# parser.parse(File.read(ARGV[0], mode: 'rb'))
#
# For more information on SAX parsers, see Nokogiri::XML::SAX
class Parser < Nokogiri::XML::SAX::Parser
Expand Down

0 comments on commit e92957c

Please sign in to comment.