Clarify 0.15 upgrade instructions

The X in `parse_X` is not the same X as in `X::new()` -- for example in
my code I needed to go from `parse_Expr` to `ExprParser::new()`.
This commit is contained in:
David Tolnay 2018-04-08 20:17:50 -07:00 committed by Dylan DPC
parent 7060a60d82
commit 2694da775d

View File

@ -33,7 +33,7 @@ Compatibility notes:
- To let regex compilation be cached, each parser are now generated as a struct
with a `parse` method instead of just a function.
To upgrade, change each parse call from `parse_X(..)` to `X::new().parse(..)`.
To upgrade, change each parse call from `parse_X(..)` to `XParser::new().parse(..)`.
Thanks to the following contributors for this release: