Permalink
Browse files

minor #3852 Fixed link and typo in type_guesser.rst (rpg600)

This PR was merged into the 2.3 branch.

Discussion
----------

Fixed link and typo in type_guesser.rst

Commits
-------

d5cd9e8 Fixed link and typo in type_guesser.rst
  • Loading branch information...
weaverryan committed May 15, 2014
2 parents 78ae7ec + d5cd9e8 commit 4211bff395f613d8dd3630178da3208b328df2bc
Showing with 2 additions and 2 deletions.
  1. +2 −2 components/form/type_guesser.rst
@@ -79,7 +79,7 @@ The ``TypeGuess`` constructor requires 3 options:
want to set the ``class`` option). If no types are guessed, this should be
set to an empty array;
* The confidence that the guessed type is correct. This can be one of the
constants of the :class:`Symfony\\Component\\Form\\Guess\Guess` class:
constants of the :class:`Symfony\\Component\\Form\\Guess\\Guess` class:
``LOW_CONFIDENCE``, ``MEDIUM_CONFIDENCE``, ``HIGH_CONFIDENCE``,
``VERY_HIGH_CONFIDENCE``. After all type guessers have been executed, the
type with the highest confidence is used.
@@ -105,7 +105,7 @@ With this knowledge, you can easily implement the ``guessType`` method of the
// otherwise, base the type on the @var annotation
switch ($annotations['var']) {
case 'string':
// there is a high confidence that the type is a string when
// there is a high confidence that the type is text when
// @var string is used
return new TypeGuess('text', array(), Guess::HIGH_CONFIDENCE);

0 comments on commit 4211bff

Please sign in to comment.