Skip to content

Commit 8a8677c

Browse files
Fix some small doc errors
1 parent d940781 commit 8a8677c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

R/methods.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#'
77
#' @description Returns the number of nodes in the graph.
88
#'
9-
#' @param cg A `caugi_graph` object.
9+
#' @param x A `caugi_graph` object.
1010
#'
1111
#' @name length
1212
#' @returns An integer representing the number of nodes.
@@ -23,7 +23,7 @@ S7::method(length, caugi_graph) <- function(x) {
2323
#' @name print
2424
#' @export
2525
S7::method(print, caugi_graph) <- function(x, ...) {
26-
print(cg@nodes)
27-
print(cg@edges)
28-
invisible(cg)
26+
print(x@nodes)
27+
print(x@edges)
28+
invisible(x)
2929
}

man/length.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)