Skip to content

Commit

Permalink
minor #3852 Fixed link and typo in type_guesser.rst (rpg600)
Browse files Browse the repository at this point in the history
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 4211bff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/form/type_guesser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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);

Expand Down

0 comments on commit 4211bff

Please sign in to comment.