From 8b3535ee36e6ab2a291e6e74463eff3efbf41f8f Mon Sep 17 00:00:00 2001 From: Jonathan Jackson Date: Tue, 4 Feb 2014 20:01:19 -0500 Subject: [PATCH] Fix grammar error in OpenURI#content_encoding and Ripper#tokenize --- ext/ripper/lib/ripper/lexer.rb | 2 +- lib/open-uri.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/ripper/lib/ripper/lexer.rb b/ext/ripper/lib/ripper/lexer.rb index 5c99dfe..df2e5c2 100644 --- a/ext/ripper/lib/ripper/lexer.rb +++ b/ext/ripper/lib/ripper/lexer.rb @@ -12,7 +12,7 @@ require 'ripper/core' class Ripper - # Tokenizes the Ruby program and returns an Array of String. + # Tokenizes the Ruby program and returns an Array of Strings. # # p Ripper.tokenize("def m(a) nil end") # # => ["def", " ", "m", "(", "a", ")", " ", "nil", " ", "end"] diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 82339ed..8ae7e00 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -535,7 +535,7 @@ module OpenURI end # returns a list of encodings in Content-Encoding field - # as an Array of String. + # as an Array of Strings. # The encodings are downcased for canonicalization. def content_encoding vs = @metas['content-encoding'] -- 1.8.4