aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2018-05-17 15:16:57 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-17 19:43:13 +0000
commit8f288d9399db95cd0a0994f037f6c08410a7c354 (patch)
tree26c647d71d94910b3df5903ce233e1314acdedfb /docs
parent7673f3ba9ec50a3ffcb19c2817980cc0a2ab7b3a (diff)
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 <caryclark@skia.org> Commit-Queue: Cary Clark <caryclark@skia.org> Auto-Submit: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'docs')
-rw-r--r--docs/SkRect_Reference.bmh4
1 files changed, 2 insertions, 2 deletions
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);