From 4c4874c26d0532ab250ced0cf750ebacbcc09d40 Mon Sep 17 00:00:00 2001 From: Leif Andersen Date: Thu, 28 Jan 2016 17:32:22 -0500 Subject: [PATCH] Documentation for scheme_register_process_global is fixed. It was previously both incomplete, and incorrect. --- pkgs/racket-doc/scribblings/inside/misc.scrbl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/racket-doc/scribblings/inside/misc.scrbl b/pkgs/racket-doc/scribblings/inside/misc.scrbl index eeb381878e..714dc1a3d6 100644 --- a/pkgs/racket-doc/scribblings/inside/misc.scrbl +++ b/pkgs/racket-doc/scribblings/inside/misc.scrbl @@ -364,10 +364,12 @@ any place.} [void* val])]{ Gets or sets a value in a process-global table (i.e., shared across -multiple places, if any). If @var{val} is NULL, the current mapping -for @var{key} is given, otherwise @var{val} is installed as the value -for @var{key} and @cpp{NULL} is returned. The given @var{val} must not -refer to garbage-collected memory. +multiple places, if any). If @var{val} is @cpp{NULL}, the current mapping +for @var{key} is given. If @var{val} is not @cpp{NULL}, and no value has been +installed for that @var{key}, then the value is installed and @cpp{NULL} is returned. If a +value has already been installed, then no new value is installed and the old +value is returned. The given @var{val} must not refer to garbage-collected +memory. This function is intended for infrequent use with a small number of keys.}