Simplify an example in the modules manual

* doc/lispref/internals.texi (Module Misc): Simplify example for how
to call 'intern'.  There's no need to pass the optional argument
explicitly.
This commit is contained in:
Philipp Stephani 2019-12-26 10:58:55 +01:00
parent 719ad59387
commit c980d21ae1

View file

@ -1912,8 +1912,7 @@ calling the more powerful Emacs @code{intern} function
emacs_value fintern = env->intern (env, "intern");
emacs_value sym_name =
env->make_string (env, name_str, strlen (name_str));
emacs_value intern_args[] = @{ sym_name, env->intern (env, "nil") @};
emacs_value symbol = env->funcall (env, fintern, 2, intern_args);
emacs_value symbol = env->funcall (env, fintern, 1, &sym_name);
@end example
@end deftypefn