From 96d5caf2e531f2dfa79e99314fe8c62f7429e404 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sat, 12 Oct 2019 17:57:58 -0400 Subject: [PATCH] user guide: fix print_run_message() examples --- doc/user_guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/user_guide.md b/doc/user_guide.md index 7be4802..2f6417c 100644 --- a/doc/user_guide.md +++ b/doc/user_guide.md @@ -1025,7 +1025,7 @@ Here is our Custom builder example extended to print its status: ```ruby class Rscons::Builders::Custom < Rscons::Builder def run(options) - print_run_message("Creating #{@target} from Custom builder") + print_run_message("Creating #{@target} from Custom builder", nil) File.open(@target, "w") do |fh| fh.write("Target file created.") end @@ -1050,7 +1050,7 @@ Here is a Custom builder which combines its source files similar to what the class Rscons::Builders::Custom < Rscons::Builder def run(options) unless @cache.up_to_date?(@target, nil, @sources, @env) - print_run_message("Combining #{Util.short_format_paths(@sources)} => #{@target}") + print_run_message("Combining #{Util.short_format_paths(@sources)} => #{@target}", nil) File.open(@target, "wb") do |fh| @sources.each do |source| fh.write(File.read(source, mode: "rb"))