Minor doc fix

Nis Martensen <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAE1EX-km-HpY_XwRFpAQSFTc0=5T+iKqptWVTc3=5kzwZSEiaA@mail.gmail.com>
Please apply!

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
0001-manual-fix-pattern-name-mismatch.patch.txt (text/plain, 1.9 KB)
From 34cdac4986570aa69fda0929f547e999a92cfdf8 Mon Sep 17 00:00:00 2001
From: Nis Martensen <[email protected]>
Date: Sat, 11 Feb 2012 23:24:27 +0100
Subject: [PATCH] manual: fix pattern name mismatch

---
 src/cairo-pattern.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c
index ea47b6a..74bbb18 100644
--- a/src/cairo-pattern.c
+++ b/src/cairo-pattern.c
@@ -942,7 +942,7 @@ static const int mesh_control_point_j[4] = { 1, 2, 2, 1 };
  * cairo_pattern_t *mesh = cairo_mesh_pattern_create_mesh ();
  *
  * /&ast; Add a Coons patch &ast;/
- * cairo_mesh_pattern_begin_patch (mesh);
+ * cairo_mesh_pattern_begin_patch (pattern);
  * cairo_mesh_pattern_move_to (pattern, 0, 0);
  * cairo_mesh_pattern_curve_to (pattern, 30, -30,  60,  30, 100, 0);
  * cairo_mesh_pattern_curve_to (pattern, 60,  30, 130,  60, 100, 100);
@@ -952,17 +952,17 @@ static const int mesh_control_point_j[4] = { 1, 2, 2, 1 };
  * cairo_mesh_pattern_set_corner_color_rgb (pattern, 1, 0, 1, 0);
  * cairo_mesh_pattern_set_corner_color_rgb (pattern, 2, 0, 0, 1);
  * cairo_mesh_pattern_set_corner_color_rgb (pattern, 3, 1, 1, 0);
- * cairo_mesh_pattern_end_patch (mesh);
+ * cairo_mesh_pattern_end_patch (pattern);
  *
  * /&ast; Add a Gouraud-shaded triangle &ast;/
- * cairo_mesh_pattern_begin_patch (mesh)
+ * cairo_mesh_pattern_begin_patch (pattern)
  * cairo_mesh_pattern_move_to (pattern, 100, 100);
  * cairo_mesh_pattern_line_to (pattern, 130, 130);
  * cairo_mesh_pattern_line_to (pattern, 130,  70);
  * cairo_mesh_pattern_set_corner_color_rgb (pattern, 0, 1, 0, 0);
  * cairo_mesh_pattern_set_corner_color_rgb (pattern, 1, 0, 1, 0);
  * cairo_mesh_pattern_set_corner_color_rgb (pattern, 2, 0, 0, 1);
- * cairo_mesh_pattern_end_patch (mesh)
+ * cairo_mesh_pattern_end_patch (pattern)
  * </programlisting></informalexample>
  *
  * When two patches overlap, the last one that has been added is drawn
-- 
1.7.2.5
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.