Skip to content

Commit

Permalink
Merge pull request #669 from olivroy/patch-1
Browse files Browse the repository at this point in the history
Only show first class in {.obj_type_friendly}
  • Loading branch information
gaborcsardi authored Feb 14, 2024
2 parents cecd95b + 97442e2 commit 1b5e691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/friendly-type.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ friendly_type <- function(x, value = TRUE, length = FALSE) {
} else {
"a"
}
return(paste0(prop, " {.cls {class(x)}} object"))
return(paste0(prop, " {.cls {class(x)[1]}} object"))
}
}

Expand Down

0 comments on commit 1b5e691

Please sign in to comment.