[cairo] Minor doc fix

Nis Martensen nis.martensen at web.de
Sun Feb 12 01:43:05 PST 2012


2012/2/12 Andrea Canciani <ranma42 at gmail.com>:
> I applied the same change to the pattern creation line and pushed to master.

Thanks Andrea!

There is one more tiny correction. Patch attached.
-------------- next part --------------
From 875b700a2b10d8c7f539fee5144069fd235cd65c Mon Sep 17 00:00:00 2001
From: Nis Martensen <nis.martensen at web.de>
Date: Sun, 12 Feb 2012 10:36:17 +0100
Subject: [PATCH] doc: fix typo

The pattern creation function call in the example code has one _mesh too
much. This hopefully fixes the mesh mismatch mess :)

Signed-off-by: Nis Martensen <nis.martensen at web.de>
---
 src/cairo-pattern.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c
index 08942f9..f114ca8 100644
--- a/src/cairo-pattern.c
+++ b/src/cairo-pattern.c
@@ -939,7 +939,7 @@ static const int mesh_control_point_j[4] = { 1, 2, 2, 1 };
  * cairo_mesh_pattern_begin_patch()/cairo_mesh_pattern_end_patch().
  *
  * <informalexample><programlisting>
- * cairo_pattern_t *pattern = cairo_mesh_pattern_create_mesh ();
+ * cairo_pattern_t *pattern = cairo_pattern_create_mesh ();
  *
  * /&ast; Add a Coons patch &ast;/
  * cairo_mesh_pattern_begin_patch (pattern);
-- 
1.7.2.5


More information about the cairo mailing list