gopls/doc/emacs.md: use more precise before-save terminology

Change-Id: I7ce5818c2067ae687ce3258189701396a2eea8cb
Reviewed-on: https://go-review.googlesource.com/c/tools/+/592335
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Michael Stapelberg <stapelberg@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/gopls/doc/emacs.md b/gopls/doc/emacs.md
index 8a54cf1..d5e3ba2 100644
--- a/gopls/doc/emacs.md
+++ b/gopls/doc/emacs.md
@@ -111,9 +111,9 @@
 ;; Optional: install eglot-format-buffer as a save hook.
 ;; The depth of -10 places this before eglot's willSave notification,
 ;; so that that notification reports the actual contents that will be saved.
-(defun eglot-format-buffer-on-save ()
+(defun eglot-format-buffer-before-save ()
   (add-hook 'before-save-hook #'eglot-format-buffer -10 t))
-(add-hook 'go-mode-hook #'eglot-format-buffer-on-save)
+(add-hook 'go-mode-hook #'eglot-format-buffer-before-save)
 ```
 
 ### Configuring `gopls` via Eglot