From 8f288d9399db95cd0a0994f037f6c08410a7c354 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Thu, 17 May 2018 15:16:57 -0400 Subject: fix setBoundsNoCheck example fix setBoundsNoCheck example R=caryclark@google.com Docs-Preview: https://skia.org/?cl=129000 Bug: skia:6898 Change-Id: Ic7ad412089bf21fd4de93f3acbeb50c7efc30a81 Reviewed-on: https://skia-review.googlesource.com/129000 Reviewed-by: Cary Clark Commit-Queue: Cary Clark Auto-Submit: Cary Clark --- docs/SkRect_Reference.bmh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/SkRect_Reference.bmh b/docs/SkRect_Reference.bmh index 12f5a6208d..40fcfb39ae 100644 --- a/docs/SkRect_Reference.bmh +++ b/docs/SkRect_Reference.bmh @@ -905,13 +905,13 @@ added: nan, 8 count: 4 rect: 0, 0, 0, 0 success: false #In Set #Line # sets to upper and lower limits of Point array ## Sets to bounds of Point pts array with count entries. If any Point in pts -contains Infinity or NaN, all Rect dimensions are set to NaN. +contains infinity or NaN, all Rect dimensions are set to NaN. #Param pts Point array ## #Param count entries in array ## #Example - SkPoint points[] = {{3, 4}, {1, 2}, {SkScalar_Inf, 6}, {SK_ScalarNaN, 8}}; + SkPoint points[] = {{3, 4}, {1, 2}, {SK_ScalarInfinity, 6}, {SK_ScalarNaN, 8}}; for (int count = 0; count <= (int) SK_ARRAY_COUNT(points); ++count) { SkRect rect; rect.setBoundsNoCheck(points, count); -- cgit v1.2.3