From 1d7174f0ca3a75320ce0fe813366673355e8fb42 Mon Sep 17 00:00:00 2001 From: Robert Plummer Date: Wed, 31 Oct 2018 14:52:13 -0400 Subject: [PATCH] fix: Typo --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index af715e1d..90ece2d0 100644 --- a/README.md +++ b/README.md @@ -435,21 +435,21 @@ To strongly type a function you may use options. Options take an optional hash `paramTypes`: optional, defaults to float for each param, a hash of param names with values of the return types Types: that may be used for `returnType` or for each property of `paramTypes`: -'Array' -'Array(2)' -'Array(3)' -'Array(4)' -'HTMLImage' -'HTMLImageArray' -'Number' -'NumberTexture' -'ArrayTexture(4)' +* 'Array' +* 'Array(2)' +* 'Array(3)' +* 'Array(4)' +* 'HTMLImage' +* 'HTMLImageArray' +* 'Number' +* 'NumberTexture' +* 'ArrayTexture(4)' Example: ```js gpu.addFunction(function mySuperFunction(a, b) { return [a - b[1], b[0] - a]; -}, { paramTypes: { a: 'Integer', b: 'Array(2)'}, returnType: 'Array(2)' }); +}, { paramTypes: { a: 'Number', b: 'Array(2)'}, returnType: 'Array(2)' }); ```