Fix typo in comment of compute_return_type()

Started by Japin Liabout 1 year ago2 messages
#1Japin Li
japinli@hotmail.com
1 attachment(s)

Hi, hackers

When I reading the implementation of CreateFunction(), I found there is a typo
in comment of compute_return_type().

--
Regrads,
Japin Li

Attachments:

0001-Fix-typo-in-comment-of-compute_return_type.patchtext/x-diffDownload
From 3a1008c692a919d55a456a7fa34e07d9c93879dd Mon Sep 17 00:00:00 2001
From: Li Jianping <jianping.li@ww-it.cn>
Date: Wed, 25 Dec 2024 14:39:15 +0800
Subject: [PATCH] Fix typo in comment of compute_return_type()

---
 src/backend/commands/functioncmds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/commands/functioncmds.c b/src/backend/commands/functioncmds.c
index 82dd659893..4bd030976d 100644
--- a/src/backend/commands/functioncmds.c
+++ b/src/backend/commands/functioncmds.c
@@ -74,7 +74,7 @@
 
 /*
  *	 Examine the RETURNS clause of the CREATE FUNCTION statement
- *	 and return information about it as *prorettype_p and *returnsSet.
+ *	 and return information about it as *prorettype_p and *returnsSet_p.
  *
  * This is more complex than the average typename lookup because we want to
  * allow a shell type to be used, or even created if the specified return type
-- 
2.43.0

#2Michael Paquier
michael@paquier.xyz
In reply to: Japin Li (#1)
Re: Fix typo in comment of compute_return_type()

On Wed, Dec 25, 2024 at 05:44:17PM +0800, Japin Li wrote:

When I reading the implementation of CreateFunction(), I found there is a typo
in comment of compute_return_type().

Good catch. Will fix!
--
Michael