app.nit: fix name of `align` parameter for use in autoinit
[nit.git] / lib / app / ui.nit
index 0afe7aa..cb45ac2 100644 (file)
@@ -211,7 +211,7 @@ abstract class TextView
        # depending on the customization options of each platform.
        # For consistent results, it is recommended to use only on instances
        # of `Label` and `size` should be either 0.0, 0.5 or 1.0.
-       fun align=(center: nullable Float) is autoinit do end
+       fun align=(align: nullable Float) is autoinit do end
 end
 
 # A control for the user to enter custom `text`