Skip to content

Commit

Permalink
Update R/generic.R
Browse files Browse the repository at this point in the history
Co-authored-by: Hadley Wickham <[email protected]>
  • Loading branch information
t-kalinowski and hadley authored Nov 4, 2024
1 parent 270cd0d commit bae1956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/generic.R
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ generic_add_method <- function(generic, signature, method) {
chr_signature <- vcapply(signature, class_register)

if (is.null(attr(method, "name", TRUE)))
attr(method, "name") <- as.name(make_method_name(generic, chr_signature))
attr(method, "name") <- as.name(method_signature(generic, signature))

for (i in seq_along(chr_signature)) {
class_name <- chr_signature[[i]]
Expand Down

0 comments on commit bae1956

Please sign in to comment.