aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@ruby-lang.org>2017-02-23 02:11:16 +0000
committerKazuki Yamaguchi <k@rhe.jp>2017-02-24 00:14:49 +0900
commit45f1ad00b5bc388a8f15c4612729e0df42f322ba (patch)
treed123ad493f403341c4774ea9c01fccdfd2d35f1d
parentabaf7befc3880d5e70dd70d1938eeb98d0b2e242 (diff)
downloadruby-openssl-45f1ad00b5bc388a8f15c4612729e0df42f322ba.tar.gz
[DOC] mark up literals
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/openssl/ossl_ssl.c10
-rw-r--r--lib/openssl/buffering.rb8
2 files changed, 10 insertions, 8 deletions
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c
index ecc6692c..9c8aab2c 100644
--- a/ext/openssl/ossl_ssl.c
+++ b/ext/openssl/ossl_ssl.c
@@ -1604,8 +1604,9 @@ ossl_ssl_connect(VALUE self)
*
* By specifying a keyword argument _exception_ to +false+, you can indicate
* that connect_nonblock should not raise an IO::WaitReadable or
- * IO::WaitWritable exception, but return the symbol :wait_readable or
- * :wait_writable instead. At EOF, it will return nil instead of raising EOFError.
+ * IO::WaitWritable exception, but return the symbol +:wait_readable+ or
+ * +:wait_writable+ instead. At EOF, it will return +nil+ instead of raising
+ * EOFError.
*/
static VALUE
ossl_ssl_connect_nonblock(int argc, VALUE *argv, VALUE self)
@@ -1652,8 +1653,9 @@ ossl_ssl_accept(VALUE self)
*
* By specifying a keyword argument _exception_ to +false+, you can indicate
* that accept_nonblock should not raise an IO::WaitReadable or
- * IO::WaitWritable exception, but return the symbol :wait_readable or
- * :wait_writable instead. At EOF, it will return nil instead of raising EOFError.
+ * IO::WaitWritable exception, but return the symbol +:wait_readable+ or
+ * +:wait_writable+ instead. At EOF, it will return +nil+ instead of raising
+ * EOFError.
*/
static VALUE
ossl_ssl_accept_nonblock(int argc, VALUE *argv, VALUE self)
diff --git a/lib/openssl/buffering.rb b/lib/openssl/buffering.rb
index 3d577945..9bd83f17 100644
--- a/lib/openssl/buffering.rb
+++ b/lib/openssl/buffering.rb
@@ -166,8 +166,8 @@ module OpenSSL::Buffering
#
# By specifying a keyword argument _exception_ to +false+, you can indicate
# that read_nonblock should not raise an IO::Wait*able exception, but
- # return the symbol :wait_writable or :wait_readable instead. At EOF, it will
- # return nil instead of raising EOFError.
+ # return the symbol +:wait_writable+ or +:wait_readable+ instead. At EOF,
+ # it will return +nil+ instead of raising EOFError.
def read_nonblock(maxlen, buf=nil, exception: true)
if maxlen == 0
@@ -379,8 +379,8 @@ module OpenSSL::Buffering
#
# By specifying a keyword argument _exception_ to +false+, you can indicate
# that write_nonblock should not raise an IO::Wait*able exception, but
- # return the symbol :wait_writable or :wait_readable instead. At EOF, it will
- # return nil instead of raising EOFError.
+ # return the symbol +:wait_writable+ or +:wait_readable+ instead. At EOF,
+ # it will return +nil+ instead of raising EOFError.
def write_nonblock(s, exception: true)
flush