Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit76e2f72

Browse files
committed
Fix a typo: should use an instance and not the class itself
The documentation contained a typo, that@mpkocher found, that omitted the round bracketsand therefore suggested using a class to store configuration values, which is clearlyan antipattern.
1 parentd7bdbc7 commit76e2f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def create_menu(config: MenuConfig):
271271
# ...
272272

273273

274-
config= MenuConfig
274+
config= MenuConfig()
275275
config.title="My delicious menu"
276276
config.body="A description of the various items on the menu"
277277
config.button_text="Order now!"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp