branch: externals/graphql
commit a8067839b6be86188a252d330ae1229800112cbe
Author: Sean Allred <c...@seanallred.com>
Commit: Sean Allred <c...@seanallred.com>

    Rename `graphql--encode-argument-pair' to `*-spec'
    
    It's a specification to the DSL; not necessarily going to be a pair
    forever.
---
 graphql.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/graphql.el b/graphql.el
index 67f362f7bc..0eb621bd50 100644
--- a/graphql.el
+++ b/graphql.el
@@ -43,8 +43,8 @@
 (defun graphql--encode-list (l)
   (when (and (consp l) (consp (car l)))
     (mapconcat #'graphql--encode l " ")))
-(defun graphql--encode-argument-pair (pair)
-  (graphql--encode-argument (car pair) (cdr pair)))
+(defun graphql--encode-argument-spec (spec)
+  (graphql--encode-argument (car spec) (cdr spec)))
 (defun graphql--encode-argument (key value)
   (format "%s:%s"
           key
@@ -87,7 +87,7 @@
             (when arguments
               ;; Format arguments "key:value, ..."
               (format "(%s)"
-                      (mapconcat #'graphql--encode-argument-pair arguments 
",")))
+                      (mapconcat #'graphql--encode-argument-spec arguments 
",")))
             (when name
               (format " %S" name))
             (when fields

Reply via email to