This is an automated email from the ASF dual-hosted git repository.
twice pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/kvrocks-website.git
The following commit(s) were added to refs/heads/main by this push:
new eaa22a8 Fix python code in exmaple (#151)
eaa22a8 is described below
commit eaa22a8f2b88b14f773627bd5b258d737a52dd48
Author: Twice <[email protected]>
AuthorDate: Sat Sep 2 15:44:55 2023 +0900
Fix python code in exmaple (#151)
---
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' +