Permalink
Browse files

"a middleware" is grammatically meaningless

used English language properly
  • Loading branch information...
1 parent fb860e8 commit c300b632f6df86f4d7be4253dd023d3a0cfda844 @gilesbowkett gilesbowkett committed Mar 20, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/rack/builder.rb
  2. +1 −1 test/spec_session_cookie.rb
View
@@ -25,7 +25,7 @@ module Rack
#
# run app
#
- # +use+ adds a middleware to the stack, +run+ dispatches to an application.
+ # +use+ adds middleware to the stack, +run+ dispatches to an application.
# You can use +map+ to construct a Rack::URLMap in a convenient way.
class Builder
@@ -55,7 +55,7 @@ def self.app(default_app = nil, &block)
self.new(default_app, &block).to_app
end
- # Specifies a middleware to use in a stack.
+ # Specifies middleware to use in a stack.
#
# class Middleware
# def initialize(app)
@@ -256,7 +256,7 @@ def decode(str); @calls << :decode; str; end
response.body.should.not.be.nil
end
- it "can handle a middleware that inspects the env" do
+ it "can handle middleware that inspects the env" do
class TestEnvInspector
def initialize(app)
@app = app

0 comments on commit c300b63

Please sign in to comment.