From e67621b8ecfbbc2f35d84ad7336c7fbb82d908cc Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Sat, 16 Dec 2017 23:12:49 +0200 Subject: [PATCH] grammar fixes(?) Former-commit-id: bf2ff1df8c841643eb2ebfc8524ba869d02c99b3 --- mvc/controller.go | 6 +++--- sessions/session.go | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/mvc/controller.go b/mvc/controller.go index ec2d3211..515e8982 100644 --- a/mvc/controller.go +++ b/mvc/controller.go @@ -2,15 +2,15 @@ package mvc import ( "fmt" - "github.com/kataras/golog" "reflect" "strings" - "github.com/kataras/iris/mvc/di" - "github.com/kataras/iris/context" "github.com/kataras/iris/core/router" "github.com/kataras/iris/core/router/macro" + "github.com/kataras/iris/mvc/di" + + "github.com/kataras/golog" ) // BaseController is the optional controller interface, if it's diff --git a/sessions/session.go b/sessions/session.go index bb9b46f2..92b46e39 100644 --- a/sessions/session.go +++ b/sessions/session.go @@ -31,10 +31,12 @@ type ( } ) -// Destroy destroys this session, it removes all sessions and flash values, -// the session entry from the server and updates the registered session databases, -// note that this method does NOT removes the client's cookie, although -// it should be re-seted if new session is attached to that (client). +// Destroy destroys this session, it removes its session values and any flashes. +// This session entry will be removed from the server, +// the registered session databases will be notified for this deletion as well. +// +// Note that this method does NOT remove the client's cookie, although +// it should be reseted if new session is attached to that (client). // // Use the session's manager `Destroy(ctx)` in order to remove the cookie as well. func (s *Session) Destroy() {