Skip to content

Commit 596dcfe

Browse files
committed
Grammar fixes
1 parent 611f231 commit 596dcfe

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

actionpack/lib/action_controller/metal/allow_browser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module ClassMethods
1414
# aren't reporting a user-agent header, will be allowed access.
1515
#
1616
# A browser that's blocked will by default be served the file in
17-
# public/406-unsupported-browser.html with a HTTP status code of "406 Not
17+
# public/406-unsupported-browser.html with an HTTP status code of "406 Not
1818
# Acceptable".
1919
#
2020
# In addition to specifically named browser versions, you can also pass
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<b>Hello from a HTML partial!</b>
1+
<b>Hello from an HTML partial!</b>

actionview/test/template/render_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def test_implicit_format_comes_from_parent_template_cascading
6060

6161
def test_explicit_js_format_adds_html_fallback
6262
rendered_templates = @controller_view.render(template: "test/js_html_fallback", formats: :js)
63-
assert_equal(%Q(document.write("<b>Hello from a HTML partial!<\\/b>")\n), rendered_templates)
63+
assert_equal(%Q(document.write("<b>Hello from an HTML partial!<\\/b>")\n), rendered_templates)
6464
end
6565

6666
def test_render_without_options

activerecord/lib/active_record/connection_adapters/abstract/quoting.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def quoted_binary(value) # :nodoc:
198198
end
199199

200200
def sanitize_as_sql_comment(value) # :nodoc:
201-
# Sanitize a string to appear within a SQL comment
201+
# Sanitize a string to appear within an SQL comment
202202
# For compatibility, this also surrounding "/*+", "/*", and "*/"
203203
# charcacters, possibly with single surrounding space.
204204
# Then follows that by replacing any internal "*/" or "/*" with

activerecord/lib/active_record/query_logs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def uncached_comment(connection)
211211
end
212212

213213
def escape_sql_comment(content)
214-
# Sanitize a string to appear within a SQL comment
214+
# Sanitize a string to appear within an SQL comment
215215
# For compatibility, this also surrounding "/*+", "/*", and "*/"
216216
# characters, possibly with single surrounding space.
217217
# Then follows that by replacing any internal "*/" or "/ *" with

activerecord/lib/arel/nodes/node.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Nodes
66
#
77
# Active Record uses Arel to compose SQL statements. Instead of building SQL strings directly, it's building an
88
# abstract syntax tree (AST) of the statement using various types of Arel::Nodes::Node. Each node represents a
9-
# fragment of a SQL statement.
9+
# fragment of an SQL statement.
1010
#
1111
# The intermediate representation allows Arel to compile the statement into the database's specific SQL dialect
1212
# only before sending it without having to care about the nuances of each database when building the statement.

guides/source/7_2_release_notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ specified.
8080

8181
This means that all other unknown browsers, as well as agents that aren't reporting a user-agent header, will be allowed access.
8282

83-
A browser that's blocked will by default be served the file in `public/406-unsupported-browser.html` with a HTTP status
83+
A browser that's blocked will by default be served the file in `public/406-unsupported-browser.html` with an HTTP status
8484
code of "406 Not Acceptable".
8585

8686
Examples:

guides/source/action_controller_advanced_topics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class MessagesController < ApplicationController
132132
end
133133
```
134134

135-
A browser that’s blocked will, by default, be served the file in `public/406-unsupported-browser.html` with a HTTP status code of “406 Not Acceptable”.
135+
A browser that’s blocked will, by default, be served the file in `public/406-unsupported-browser.html` with an HTTP status code of “406 Not Acceptable”.
136136

137137
HTTP Authentication
138138
-------------------

guides/source/generators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ the `LOCATION` environment variable:
499499
$ bin/rails app:template LOCATION=~/template.rb
500500
```
501501

502-
Templates don't have to be stored locally, you can also specify an URL instead
502+
Templates don't have to be stored locally, you can also specify a URL instead
503503
of a path:
504504

505505
```bash

0 commit comments

Comments
 (0)