Skip to content

Commit 826f947

Browse files
committed
Fix typo in file name
1 parent f82f68a commit 826f947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/classic_to_zeitwerk_howto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ VAT is an European tax. The file `app/models/vat.rb` defines `VAT` but the autol
132132

133133
This is the most common kind of discrepancy you may find, it has to do with acronyms. Let's understand why do we get that error message.
134134

135-
The classic autoloader is able to autoload `VAT` because its input is the name of the missing constant, `VAT`, invokes `underscore` on it, which yields `vat`, and looks for a file called `var.rb`. It works.
135+
The classic autoloader is able to autoload `VAT` because its input is the name of the missing constant, `VAT`, invokes `underscore` on it, which yields `vat`, and looks for a file called `vat.rb`. It works.
136136

137137
The input of the new autoloader is the file system. Give the file `vat.rb`, Zeitwerk invokes `camelize` on `vat`, which yields `Vat`, and expects the file to define the constant `Vat`. That is what the error message says.
138138

0 commit comments

Comments
 (0)