Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

fix incorrect code snippet

Vasek Mlejnsky46aa4ec20a80
diff --git a/apps/web/src/app/(docs)/docs/code-interpreting/supported-languages/bash/page.mdx b/apps/web/src/app/(docs)/docs/code-interpreting/supported-languages/bash/page.mdx
index 0478795a8..b0ec39d26 100644
--- a/apps/web/src/app/(docs)/docs/code-interpreting/supported-languages/bash/page.mdx
+++ b/apps/web/src/app/(docs)/docs/code-interpreting/supported-languages/bash/page.mdx
@@ -6,14 +6,14 @@ You'll need to pass the `language` parameter with value `bash`.
import { Sandbox } from '@e2b/code-interpreter'
const sbx = await Sandbox.create()
-const execution = await sbx.runCode('console.log("Hello, world!")', { language: 'bash' })
+const execution = await sbx.runCode('echo "Hello, world!"', { language: 'bash' })
console.log(execution)
```
```python
from e2b_code_interpreter import Sandbox
sbx = Sandbox()
-execution = sbx.run_code('console.log("Hello, world!")', { language: 'bash' })
+execution = sbx.run_code("echo 'Hello, world!'", language="bash")
print(execution)
```
</CodeGroup>
\ No newline at end of file