From f9f235ac2ee8eac3f5a4d0de25f223ed2f208371 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Mon, 6 May 2019 08:40:32 +1000 Subject: [PATCH] Corrected use of function [ci skip] --- docs/handbook/writing-your-own-file-decoder.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/handbook/writing-your-own-file-decoder.rst b/docs/handbook/writing-your-own-file-decoder.rst index 2e68656ca..f3f34e30d 100644 --- a/docs/handbook/writing-your-own-file-decoder.rst +++ b/docs/handbook/writing-your-own-file-decoder.rst @@ -255,9 +255,10 @@ If the raw decoder cannot handle your format, PIL also provides a special “bit decoder that can be used to read various packed formats into a floating point image memory. -To use the bit decoder with the frombytes function, use the following syntax:: +To use the bit decoder with the :py:func:`PIL.Image.frombytes` function, use +the following syntax:: - image = frombytes( + image = Image.frombytes( mode, size, data, "bit", bits, pad, fill, sign, orientation )