From 1882a272f7ab34f01f84814e17140b3d2c4c76b5 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Mon, 10 Jan 2005 20:25:39 +0000 Subject: [PATCH] (scm_eval): Added example to docstring. Thanks to Issac Trotts! --- libguile/eval.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libguile/eval.c b/libguile/eval.c index bcfba4ff0..51dbc19a0 100644 --- a/libguile/eval.c +++ b/libguile/eval.c @@ -4152,7 +4152,8 @@ SCM_DEFINE (scm_eval, "eval", 2, 0, 0, "in the top-level environment specified by @var{module}.\n" "While @var{exp} is evaluated (using @code{primitive-eval}),\n" "@var{module} is made the current module. The current module\n" - "is reset to its previous value when @var{eval} returns.") + "is reset to its previous value when @var{eval} returns.\n" + "Example: (eval '(+ 1 2) (interaction-environment))") #define FUNC_NAME s_scm_eval { SCM_VALIDATE_MODULE (2, module);