Skip to content

Commit

Permalink
Fix python code in exmaple
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaTwice authored Sep 2, 2023
1 parent 86b439e commit 79c011d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' +
Expand Down

0 comments on commit 79c011d

Please sign in to comment.