mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Fix wording
This commit is contained in:
parent
159af590a3
commit
d333f586df
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ module Hamlit
|
|||
[:code, code]
|
||||
end
|
||||
|
||||
def assert!(message)
|
||||
def copmile_error!(message)
|
||||
raise CompileError.new(message)
|
||||
end
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ module Hamlit
|
|||
width = count_width(line)
|
||||
|
||||
return (width + 1) / 2 unless strict
|
||||
assert!('Expected to count even-width indent') if width.odd?
|
||||
compile_error!('Expected to count even-width indent') if width.odd?
|
||||
|
||||
width / 2
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue