From a603b6bb3d658504450f0a5da52bee7190d6079a Mon Sep 17 00:00:00 2001 From: pcdinh Date: Tue, 17 Jul 2018 16:52:20 +0700 Subject: [PATCH] Fix document (issue 155): 'Vibora' object has no attribute 'add_component'. --- docs/components/initial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/components/initial.md b/docs/components/initial.md index 4e65a84..f6a724c 100644 --- a/docs/components/initial.md +++ b/docs/components/initial.md @@ -70,7 +70,7 @@ class Config: app = Vibora() # Registering the config instance. -app.add_component(Config()) +app.components.add(Config()) @app.route('/') async def home(request: Request, config: Config):