This is an automated email from the ASF dual-hosted git repository.

twice pushed a commit to branch PragmaTwice-patch-1
in repository https://gitbox.apache.org/repos/asf/kvrocks-website.git

commit 79c011d1604423d6235d3b76bc5f6b4223db96e8
Author: Twice <[email protected]>
AuthorDate: Sat Sep 2 15:24:13 2023 +0900

    Fix python code in exmaple
---
 src/components/HomepageFeatures/index.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/components/HomepageFeatures/index.tsx 
b/src/components/HomepageFeatures/index.tsx
index e6b8160..c5bfa91 100644
--- a/src/components/HomepageFeatures/index.tsx
+++ b/src/components/HomepageFeatures/index.tsx
@@ -220,7 +220,9 @@ export function LineChartRight(): JSX.Element {
 }
 
 export function CodeBlock(): JSX.Element {
-  const [pythonCode, setPythonCode]=useState('r = 
redis.Redis(host=\'localhost\', port=6666, decode_responses=True)\n' +
+  const [pythonCode, setPythonCode]=useState('import redis\n' +
+      '\n' +
+      'r = redis.Redis(host=\'localhost\', port=6666, 
decode_responses=True)\n' +
       '\n' +
       'r.set(\'username\', \'kvrocks\')\n' +
       '# True\n' +

Reply via email to