Error in example - Mailing list pgsql-docs

From PG Doc comments form
Subject Error in example
Date
Msg-id 154522283371.15419.15167411691473730460@wrigleys.postgresql.org
Whole thread Raw
Responses Re: Error in example
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/10/spi-examples.html
Description:

Dear, 

In the example of how to use SPI in the following link
https://www.postgresql.org/docs/10/spi-examples.html

The parameters numbers in the follow lines are wrong. 

    / * Convert a text object to a C string * /
    command = text_to_cstring (PG_GETARG_TEXT_PP (1));
    cnt = PG_GETARG_INT32 (2);

They should be as follow:

    / * Convert a text object to a C string * /
    command = text_to_cstring (PG_GETARG_TEXT_PP (0));
    cnt = PG_GETARG_INT32 (1);

Best regards,
Gláucio

pgsql-docs by date:

Previous
From: Jürgen Purtz
Date:
Subject: Re: First SVG graphic
Next
From: Tom Lane
Date:
Subject: Re: Error in example