From 200fa935b830e116159a10018f60b9b02e119af1 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Tue, 26 Sep 2017 04:24:19 +0200 Subject: [PATCH] docs(toast-controller): use const instead of let (#12962) --- src/components/toast/toast-controller.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/toast/toast-controller.ts b/src/components/toast/toast-controller.ts index f482cbcae1..c853916493 100644 --- a/src/components/toast/toast-controller.ts +++ b/src/components/toast/toast-controller.ts @@ -39,12 +39,10 @@ import { ToastOptions } from './toast-options'; * ```ts * import { ToastController } from 'ionic-angular'; * - * constructor(private toastCtrl: ToastController) { - * - * } + * constructor(public toastCtrl: ToastController) { } * * presentToast() { - * let toast = this.toastCtrl.create({ + * const toast = this.toastCtrl.create({ * message: 'User was added successfully', * duration: 3000, * position: 'top'