Skip to content

Commit

Permalink
Typo in developer FAQ (#1836)
Browse files Browse the repository at this point in the history
* Typo in developer FAQ

* Document

---------

Co-authored-by: Davis Vaughan <davis@posit.co>
  • Loading branch information
etiennebacher and DavisVaughan committed Oct 10, 2023
1 parent 5852e42 commit c5a8276
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion man/faq/developer/howto-coercion.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ knitr_local_registration("vctrs::vec_ptype2", "double.my_natural")

Most of the time, inputs are incompatible because they have different classes for which no `vec_ptype2()` method is implemented. More rarely, inputs could be incompatible because of their attributes. In that case incompatibility is signalled by calling `stop_incompatible_type()`.

In the following example, we implement a self-self ptype2 method for a hypothetical subclass of `<factor>` that has stricter combination semantics. The method throws when the levels of the two factors are not compatible.
In the following example, we implement a self-self ptype2 method for a hypothetical subclass of `<factor>` that has stricter combination semantics. The method throws an error when the levels of the two factors are not compatible.

```{r, eval = FALSE}
#' @export
Expand Down
4 changes: 2 additions & 2 deletions man/howto-faq-coercion.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c5a8276

Please sign in to comment.