From 7528e47e8469fed5179eba3ae0d5f04c2b21186c Mon Sep 17 00:00:00 2001 From: Matan Lurey Date: Tue, 15 May 2018 08:00:30 -0700 Subject: [PATCH] Fix documentation mistake in painting.dart (flutter/engine#5236) s/`[red]`/_correct color_. --- engine/src/flutter/lib/ui/painting.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/lib/ui/painting.dart b/engine/src/flutter/lib/ui/painting.dart index f97b2d271b..bef7068f44 100644 --- a/engine/src/flutter/lib/ui/painting.dart +++ b/engine/src/flutter/lib/ui/painting.dart @@ -109,8 +109,8 @@ class Color { /// * `a` is the alpha value, with 0 being transparent and 255 being fully /// opaque. /// * `r` is [red], from 0 to 255. - /// * `g` is [red], from 0 to 255. - /// * `b` is [red], from 0 to 255. + /// * `g` is [green], from 0 to 255. + /// * `b` is [blue], from 0 to 255. /// /// Out of range values are brought into range using modulo 255. /// @@ -125,8 +125,8 @@ class Color { /// Create a color from red, green, blue, and opacity, similar to `rgba()` in CSS. /// /// * `r` is [red], from 0 to 255. - /// * `g` is [red], from 0 to 255. - /// * `b` is [red], from 0 to 255. + /// * `g` is [green], from 0 to 255. + /// * `b` is [blue], from 0 to 255. /// * `opacity` is alpha channel of this color as a double, with 0.0 being /// transparent and 1.0 being fully opaque. ///