Skip to content

Commit c8693f1

Browse files
authored
Merge pull request #805 from hoshi-sano/doc-config-to_s
[DOC] Replace removed method in example for OpenSSL::Config#to_s
2 parents a3f0f6a + 2637063 commit c8693f1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ext/openssl/ossl_config.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,18 +305,16 @@ static IMPLEMENT_LHASH_DOALL_ARG_FN(dump_conf_value, CONF_VALUE, VALUE)
305305
*
306306
* Gets the parsable form of the current configuration.
307307
*
308-
* Given the following configuration being created:
308+
* Given the following configuration file being loaded:
309309
*
310-
* config = OpenSSL::Config.new
311-
* #=> #<OpenSSL::Config sections=[]>
312-
* config['default'] = {"foo"=>"bar","baz"=>"buz"}
313-
* #=> {"foo"=>"bar", "baz"=>"buz"}
310+
* config = OpenSSL::Config.load('baz.cnf')
311+
* #=> #<OpenSSL::Config sections=["default"]>
314312
* puts config.to_s
315313
* #=> [ default ]
316314
* # foo=bar
317315
* # baz=buz
318316
*
319-
* You can parse get the serialized configuration using #to_s and then parse
317+
* You can get the serialized configuration using #to_s and then parse
320318
* it later:
321319
*
322320
* serialized_config = config.to_s

0 commit comments

Comments
 (0)