summaryrefslogtreecommitdiff
path: root/ext/openssl
diff options
context:
space:
mode:
authorClaus Lensbøl <cmol@cmol.dk>2020-07-23 14:52:10 +0200
committerKazuki Yamaguchi <k@rhe.jp>2021-03-16 19:16:11 +0900
commitbe1e88a277a76d614070587e9cc3b4bda92a3670 (patch)
tree952319caa01c6963c5192b04f7f856e693246e37 /ext/openssl
parent81325db5f8bcd8c3e964ff6285792c2cade29b2c (diff)
[ruby/openssl] Fix typo in documentation
The socket is called ssl_connection, not connection https://github.com/ruby/openssl/commit/642783aeda
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4275
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/ossl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c
index b64f1e0e343..7bdf3a2ef03 100644
--- a/ext/openssl/ossl.c
+++ b/ext/openssl/ossl.c
@@ -1072,13 +1072,13 @@ ossl_crypto_fixed_length_secure_compare(VALUE dummy, VALUE str1, VALUE str2)
* loop do
* ssl_connection = ssl_server.accept
*
- * data = connection.gets
+ * data = ssl_connection.gets
*
* response = "I got #{data.dump}"
* puts response
*
- * connection.puts "I got #{data.dump}"
- * connection.close
+ * ssl_connection.puts "I got #{data.dump}"
+ * ssl_connection.close
* end
*
* === SSL client