nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
code: explicitly call init in some named constructors
[nit.git]
/
lib
/
html
/
html.nit
diff --git
a/lib/html/html.nit
b/lib/html/html.nit
index
6cb192b
..
b5f5529
100644
(file)
--- a/
lib/html/html.nit
+++ b/
lib/html/html.nit
@@
-123,7
+123,7
@@
class HTMLTag
# Create a HTML elements with the specifed type and attributes.
init with_attrs(tag: String, attrs: Map[String, String]) do
- self.tag = tag
+ init(tag)
self.attrs = attrs
end