diff --git a/doc/source/algorithm.rst b/doc/source/algorithm.rst
index 0c221f3c1efc4edef2c16c4cfee2a1b3c60b2fc0..13b4c8b5f03d260de0381d7b1922f80e709ba539 100644
--- a/doc/source/algorithm.rst
+++ b/doc/source/algorithm.rst
@@ -149,7 +149,8 @@ difficult to parallelize because of loop-carried dependencies.
 Usage Example
 ^^^^^^^^^^^^^
 
-This example illustrates the implementation of a simplified version of :func:`copy_if`,
+This example illustrates the implementation of a simplified version of
+:func:`pyopencl.algorithm.copy_if`,
 which copies integers from an array into the (variable-size) output if they are
 greater than 300::