Skip to content

Commit 926f853

Browse files
authored
Fix some typos [ci skip] (brianmario#1195)
1 parent a825ba1 commit 926f853

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ results.each do |row|
148148
# the keys are the fields, as you'd expect
149149
# the values are pre-built ruby primitives mapped from their corresponding field types in MySQL
150150
puts row["id"] # row["id"].is_a? Integer
151-
if row["dne"] # non-existant hash entry is nil
151+
if row["dne"] # non-existent hash entry is nil
152152
puts row["dne"]
153153
end
154154
end
@@ -285,7 +285,7 @@ Mysql2::Client.new(
285285

286286
### Secure auth
287287

288-
Starting wih MySQL 5.6.5, secure_auth is enabled by default on servers (it was disabled by default prior to this).
288+
Starting with MySQL 5.6.5, secure_auth is enabled by default on servers (it was disabled by default prior to this).
289289
When secure_auth is enabled, the server will refuse a connection if the account password is stored in old pre-MySQL 4.1 format.
290290
The MySQL 5.6.5 client library may also refuse to attempt a connection if provided an older format password.
291291
To bypass this restriction in the client, pass the option `:secure_auth => false` to Mysql2::Client.new().

ext/mysql2/client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static ID intern_brackets, intern_merge, intern_merge_bang, intern_new_with_args
4545
}
4646

4747
/*
48-
* compatability with mysql-connector-c, where LIBMYSQL_VERSION is the correct
48+
* compatibility with mysql-connector-c, where LIBMYSQL_VERSION is the correct
4949
* variable to use, but MYSQL_SERVER_VERSION gives the correct numbers when
5050
* linking against the server itself
5151
*/

ext/mysql2/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def add_ssl_defines(header)
154154
$CFLAGS << ' ' << usable_flags.join(' ')
155155

156156
enabled_sanitizers = disabled_sanitizers = []
157-
# Specify a commna-separated list of sanitizers, or try them all by default
157+
# Specify a comma-separated list of sanitizers, or try them all by default
158158
sanitizers = with_config('sanitize')
159159
case sanitizers
160160
when true

ext/mysql2/statement.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ static VALUE rb_mysql_stmt_execute(int argc, VALUE *argv, VALUE self) {
456456
}
457457

458458
if (!is_streaming) {
459-
// recieve the whole result set from the server
459+
// receive the whole result set from the server
460460
if (mysql_stmt_store_result(stmt)) {
461461
mysql_free_result(metadata);
462462
rb_raise_mysql2_stmt_error(stmt_wrapper);

spec/ssl/gen_certs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ organizationalUnitName_default = Mysql2Gem
2222
emailAddress_default = [email protected]
2323
" | tee ca.cnf cert.cnf
2424

25-
# The client and server certs must have a diferent common name than the CA
25+
# The client and server certs must have a different common name than the CA
2626
# to avoid "SSL connection error: error:00000001:lib(0):func(0):reason(1)"
2727

2828
echo "

0 commit comments

Comments
 (0)