Fix doc comment to refer to correct method

This commit is contained in:
Marc Siegel 2018-01-11 17:42:12 -05:00
parent 36fc00f582
commit bf153e5def
1 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ module Docile
module_function :dsl_eval module_function :dsl_eval
# Execute a block in the context of an object whose methods represent the # Execute a block in the context of an object whose methods represent the
# commands in a DSL, and return the block's return value. # commands in a DSL, and return *the block's return value*.
# #
# @note Use with an *imperative* DSL (commands modify the context object) # @note Use with an *imperative* DSL (commands modify the context object)
# #
@ -57,7 +57,7 @@ module Docile
# 3. The final return value is the original context object # 3. The final return value is the original context object
# #
# @example Use a String as a DSL # @example Use a String as a DSL
# Docile.dsl_eval("Hello, world!") do # Docile.dsl_eval_with_block_return("Hello, world!") do
# reverse! # reverse!
# upcase! # upcase!
# first # first
@ -65,7 +65,7 @@ module Docile
# #=> "!" # #=> "!"
# #
# @example Use an Array as a DSL # @example Use an Array as a DSL
# Docile.dsl_eval([]) do # Docile.dsl_eval_with_block_return([]) do
# push "a" # push "a"
# push "b" # push "b"
# pop # pop