diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2023-11-27 12:30:46 -0500 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-11-27 17:30:54 +0000 |
| commit | bd4a992f38f59d15e325966a8e57f12559f331ad (patch) | |
| tree | a0613ac5db768cf79d11e9b1b0779da02a3397a4 | |
| parent | cc05a60c16b69b6156396f9e6a009f94421fe1b4 (diff) | |
[ruby/prism] Correct template.rb comment
https://github.com/ruby/prism/commit/4d689fe1df
| -rwxr-xr-x | prism/templates/template.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/prism/templates/template.rb b/prism/templates/template.rb index 9d3481e75d..626347ee24 100755 --- a/prism/templates/template.rb +++ b/prism/templates/template.rb @@ -380,7 +380,8 @@ module Prism if (extension == ".c" || extension == ".h") && !contents.ascii_only? # Enforce that we only have ASCII characters here. This is necessary - # for some locales that only allow ASCII characters in C source files. + # for non-UTF-8 locales that only allow ASCII characters in C source + # files. contents.each_line.with_index(1) do |line, line_number| raise "Non-ASCII character on line #{line_number} of #{write_to}" unless line.ascii_only? end |
