Permalink
Browse files

Name variable for what it is.

  • Loading branch information...
1 parent 44bbbf0 commit e07a07e4b1e93f190a6d09a9205842d09f8e8328 @airblade committed Nov 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/magic_encoding.rb
View
@@ -13,7 +13,7 @@ def self.process(options)
encoding = options[0] || "utf-8"
directory = options[1] || Dir.pwd
- prefix = "-*- encoding : #{encoding} -*-"
+ magic_comment = "-*- encoding : #{encoding} -*-"
# TODO : add options for recursivity (and application of the script to a single file)
@@ -38,7 +38,7 @@ def self.process(options)
end
# set current encoding
- lines.insert(0, comment_style.sub('{text}', prefix) + "\n")
+ lines.insert(0, comment_style.sub('{text}', magic_comment) + "\n")
count += 1
file.pos = 0

0 comments on commit e07a07e

Please sign in to comment.