summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-05-14 06:20:07 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-05-14 06:20:07 -0700
commit42ba972afe9f527d91357b29a2049dfef14c4823 (patch)
treed914895d29085c3a7b7948212cbb51c0289cea48 /lib.c
parent07c6d46b1cc8300042832c9a01fe57cdfb130db3 (diff)
downloadtxr-42ba972afe9f527d91357b29a2049dfef14c4823.tar.gz
txr-42ba972afe9f527d91357b29a2049dfef14c4823.tar.bz2
txr-42ba972afe9f527d91357b29a2049dfef14c4823.zip
lib: sys_rplacd misnamed parameter.
* lib.c (sys_rplacd): Change parameter name from new_car to new_cdr, for obvious reasons.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib.c b/lib.c
index c5f3b476..4883e08b 100644
--- a/lib.c
+++ b/lib.c
@@ -1373,10 +1373,10 @@ val sys_rplaca(val cons, val new_car)
return new_car;
}
-val sys_rplacd(val cons, val new_car)
+val sys_rplacd(val cons, val new_cdr)
{
- (void) rplacd(cons, new_car);
- return new_car;
+ (void) rplacd(cons, new_cdr);
+ return new_cdr;
}
loc car_l(val cons)