doc: Move an incorrectly placed comment

This commit is contained in:
Glen Whitney 2022-07-20 02:57:46 +00:00
parent 9a63389a4c
commit 89f4977e78
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import {numComplex} from './Complex.mjs'
export const negate = {
/* need a "base case" to avoid infinite self-reference */
Complex: [['self'], ref => z => {
/* need a "base case" to avoid infinite self-reference */
if (numComplex(z)) return {re: -z.re, im: -z.im}
return {re: ref.self(z.re), im: ref.self(z.im)}
}]