From 621a108b5e994f3d74aee64e9ebe51cd30867ec9 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 22 Sep 2017 15:15:10 +0100 Subject: [PATCH] Use flow style function definition for doc --- src/components/views/elements/TruncatedList.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/views/elements/TruncatedList.js b/src/components/views/elements/TruncatedList.js index 1e955149d7..1801b1c3ab 100644 --- a/src/components/views/elements/TruncatedList.js +++ b/src/components/views/elements/TruncatedList.js @@ -28,9 +28,8 @@ module.exports = React.createClass({ // The className to apply to the wrapping div className: PropTypes.string, // A function that returns the children to be rendered into the element. - // Takes two integers which define the range of child indices to return. + // function getChildren(start: number, end: number): Array // The start element is included, the end is not (as in `slice`). - // Returns an array. // If omitted, the React child elements will be used. This parameter can be used // to avoid creating unnecessary React elements. getChildren: PropTypes.func,