Skip to content

Commit 18b3fb0

Browse files
authored
Update README.md
1 parent 26517a8 commit 18b3fb0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ JavaScript / TypeScript
4848
import { Sandbox } from '@e2b/code-interpreter'
4949

5050
const sandbox = await Sandbox.create()
51-
await sbx.runCode()('x = 1')
51+
await sbx.runCode('x = 1')
5252

53-
const execution = await sbx.runCode()('x+=1; x')
53+
const execution = await sbx.runCode('x+=1; x')
5454
console.log(execution.text) // outputs 2
5555
```
5656

@@ -59,8 +59,8 @@ Python
5959
from e2b_code_interpreter import Sandbox
6060

6161
with Sandbox() as sandbox:
62-
sandbox.run_code()("x = 1")
63-
execution = sandbox.run_code()("x+=1; x")
62+
sandbox.run_code("x = 1")
63+
execution = sandbox.run_code("x+=1; x")
6464
print(execution.text) # outputs 2
6565
```
6666

0 commit comments

Comments
 (0)