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

View File

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