Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[Book][HTTP Foundation] Fix syntax errors in code examples
  • Loading branch information
johnkary committed Feb 26, 2011
commit 3a40de904c7d21a91d99b01be33e2484d568efc6
4 changes: 2 additions & 2 deletions book/http_fundamentals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ to the client::
use Symfony\Component\HttpFoundation\Response;
$response = new Response();

$response->setContent('<html><body><h1>Hello world!</h1></body></html');
$response->setContent('<html><body><h1>Hello world!</h1></body></html>');
$response->setStatusCode(200);
$response->headers->set('Content-Type', 'text/html');

Expand Down Expand Up @@ -338,7 +338,7 @@ elsewhere and handled by the ``Kernel``::

public function aboutAction()
{
return Response('About us');
return new Response('About us');
}
}

Expand Down