From eaaa6940ce617b00beca9ad3bf845c35ccf584e7 Mon Sep 17 00:00:00 2001
From: Bob Vincent <bobvin@pillars.net>
Date: Fri, 27 May 2011 18:55:00 -0400
Subject: [PATCH] Issue #1079214 by robertb, drewish, jhodgdon, bfroehle, pillarsdotnet: Clean up docs and example code for drupal_goto().

---
 includes/common.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/includes/common.inc b/includes/common.inc
index 95e03e8cc93e6d41ee5780e9019bd9e50607f547..b7955e6b4979a5d921f8f8cb130c321a57318ad2 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -632,8 +632,8 @@ function drupal_encode_path($path) {
  * user/login and override the default redirection so that the user is
  * redirected to a specific path after logging in:
  * @code
- *   $destination = array('destination' => "node/$node->nid");
- *   l(t('Log in'), array('@login' => url('user/login', array('query' => array($destination)))));
+ *   $query = array('destination' => "node/$node->nid");
+ *   $link = l(t('Log in'), 'user/login', array('query' => $query));
  * @endcode
  *
  * Drupal will ensure that messages set by drupal_set_message() and other
-- 
1.7.4.1

