From 0699498e5eb717a351c223e6a5a6a3bd3d3c6cde Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 17 Jan 2016 23:14:21 +0000 Subject: doc: update-footer.rb: fix for frozen_string_literal Oops :x --- Documentation/update-footer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/update-footer.rb b/Documentation/update-footer.rb index ee6583b..a6e16cb 100755 --- a/Documentation/update-footer.rb +++ b/Documentation/update-footer.rb @@ -24,13 +24,13 @@ ARGV.each do |file| File.open(file, "r+") do |fp| state = :top sections = [ state ] - sec = { state => "" } + sec = { state => ''.dup } fp.each_line do |l| case l when /^(#.+)$/ state = $1.freeze sections << state - sec[state] = "" + sec[state] = ''.dup else sec[state] << l end -- cgit v1.2.3-24-ge0c7