Skip to content

Commit

Permalink
fix example in Pattern.set_filter() docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sir-sigurd authored Dec 25, 2020
1 parent dad2b74 commit 9ab1e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/patterns.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ derive. It cannot be instantiated directly.
creates implicitly. For example::

context.set_source_surface(image, x, y)
surfacepattern.set_filter(context.get_source(), cairo.FILTER_NEAREST)
context.get_source().set_filter(cairo.FILTER_NEAREST)

.. versionadded:: 1.12.0

Expand Down

0 comments on commit 9ab1e9d

Please sign in to comment.