phobos.el: rename function parameter

This commit is contained in:
Jeremy Baxter 2024-07-17 17:20:52 +12:00
parent decfe0dc9c
commit 7680075bcf

View file

@ -28,10 +28,10 @@
(defvar phobos-root "https://dlang.org/library"
"Root URL to use when viewing documentation with `phobos'.")
(defun phobos (symbol-name)
"View the documentation on SYMBOL-NAME from the Phobos documentation.
(defun phobos (symbol)
"View the documentation on SYMBOL from the Phobos documentation.
SYMBOL-NAME can be a module (e.g. std.sumtype), a submodule (e.g.
SYMBOL can be a module (e.g. std.sumtype), a submodule (e.g.
std.algorithm.searching), a function or type (e.g. std.stdio.File)
or any other symbol part of a standard module, such as object.Exception.
@ -39,6 +39,6 @@ Phobos is the standard library for the D programming language. For more
information on Phobos and the D programming language, see <https://dlang.org>."
(interactive "MModule or symbol: ")
(shell-command (concat phobos-browser " " phobos-root "/"
(string-replace "." "/" symbol-name) ".html")))
(string-replace "." "/" symbol) ".html")))
(provide 'phobos)