Fix require to new syntax
This commit is contained in:
parent
77bc767907
commit
bae4d61e04
@ -11,7 +11,7 @@ on the code by `Adam Bard`_.
|
||||
|
||||
.. code-block:: clj
|
||||
|
||||
=> (require [hy.contrib.multi [defmulti defmethod]])
|
||||
=> (require [hy.contrib.multi [defmulti defmethod default-method]])
|
||||
=> (defmulti area [shape]
|
||||
... "calculate area of a shape"
|
||||
... (:type shape))
|
||||
|
@ -19,8 +19,7 @@
|
||||
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
;; DEALINGS IN THE SOFTWARE.
|
||||
|
||||
(require [hy.contrib.multi [defmulti]])
|
||||
|
||||
(require [hy.contrib.multi [defmulti defmethod default-method]])
|
||||
|
||||
(defn test-different-signatures []
|
||||
"NATIVE: Test multimethods with different signatures"
|
||||
|
Loading…
x
Reference in New Issue
Block a user