From 5fc6b47d74f7971e378a9b2f299283d981d76602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 22 May 2018 10:24:03 +0200 Subject: [PATCH] followup: Add a comment regarding why a type is generic. Bug: 1462829 Rubber-stamped-by: xidorn MozReview-Commit-ID: 5DE8W2n1NP --- components/style/properties/helpers.mako.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/style/properties/helpers.mako.rs b/components/style/properties/helpers.mako.rs index 03b588ad654..209c06df095 100644 --- a/components/style/properties/helpers.mako.rs +++ b/components/style/properties/helpers.mako.rs @@ -119,6 +119,10 @@ use values::computed::ComputedVecIter; /// The generic type defining the value for this property. + /// + /// Making this type generic allows the compiler to figure out the + /// animated value for us, instead of having to implement it + /// manually for every type we care about. % if separator == "Comma": #[css(comma)] % endif