doc: Move an incorrectly placed comment
This commit is contained in:
parent
9a63389a4c
commit
89f4977e78
@ -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)}
|
||||||
}]
|
}]
|
||||||
|
Loading…
Reference in New Issue
Block a user