Skip to content

Commit cc2db64

Browse files
fix
1 parent aeac3a6 commit cc2db64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/docs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const tutorial = {
3838
],
3939
'TS': [
4040
`import { encode as encd, decode as decd } from "${process.env.scriptURL}";\nconst encode: (text: string, key?: string, compress?: boolean) => string = encd;\nconst decode: (text: string, key?: string) => string = decd;`,
41-
'const text = "Hello, Encoder.js!";\nconst key = "TOP SECRET KEY";\nconst encoded = encode(text, key, true);\nconst decoded = decode(encoded, key);\n\nconsole.log(` text: "${text}"\n key: "${key}"\nencoded: "${encoded}"\ndecoded: "${decoded}"`);'
41+
'const text = "Hello, Encoder.js!";\nconst key = "TOP SECRET KEY";\nconst encoded = encode(text, key, true);\nconst decoded = decode(encoded, key);\n\nconsole.log(` text: "${text}"\\n key: "${key}"\\nencoded: "${encoded}"\\ndecoded: "${decoded}"`);'
4242
]
4343
}
4444

0 commit comments

Comments
 (0)