Skip to content

Commit b756644

Browse files
committed
Fix typo (evalute to evaluate)
1 parent 50bf3ae commit b756644

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.org

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ This package bridges to [[http://php.net/][PHP: Hypertext Preprocessor]].
2424
;; Get numeric value by PHP
2525
(setq php-int-max (string-to-number (php-runtime-expr "PHP_INT_MAX")))
2626

27-
;; Evalute PHP code with STDIN as a string
27+
;; Evaluate PHP code with STDIN as a string
2828
(princ (php-runtime-eval "while ($line = trim(fgets(STDIN))) { var_dump($line); }"
2929
"apple\nbanana\norange"))
3030

31-
;; Evalute PHP code with STDIN as a file
31+
;; Evaluate PHP code with STDIN as a file
3232
(princ (php-runtime-eval "while ($line = trim(fgets(STDIN))) { var_dump($line); }"
3333
(cons :file "/etc/hosts")))
3434
#+END_SRC

php-runtime.el

+4-3
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,17 @@ arguments. You can check the limitation by command, for example
191191

192192
;;;###autoload
193193
(defun php-runtime-expr (php-expr &optional input-buffer)
194-
"Evalute and echo PHP expression PHP-EXPR.
194+
"Evaluate and echo PHP expression PHP-EXPR.
195195
196196
Pass INPUT-BUFFER to PHP executable as STDIN."
197197
(php-runtime-eval (format "echo %s;" php-expr) input-buffer))
198198

199199
;;;###autoload
200200
(defun php-runtime-eval (code &optional input-buffer output-buffer)
201-
"Evalute PHP code CODE without open tag, and return buffer.
201+
"Evaluate PHP code CODE without open tag, and return buffer.
202202
203-
Pass INPUT-BUFFER to PHP executable as STDIN."
203+
Pass INPUT-BUFFER to PHP executable as STDIN.
204+
Pass OUTPUT-BUFFER to PHP executable as STDOUT."
204205
(let ((executor (php-runtime-execute :code (if (php-runtime-string-has-null-byte code)
205206
(cons :file (php-runtime--save-temp-script code))
206207
(cons :string code))

0 commit comments

Comments
 (0)