diff --git a/src/GNNGraphs/gnngraph.jl b/src/GNNGraphs/gnngraph.jl index 3381ea9e4..7bb9c9812 100644 --- a/src/GNNGraphs/gnngraph.jl +++ b/src/GNNGraphs/gnngraph.jl @@ -211,7 +211,7 @@ function Base.show(io::IO, ::MIME"text/plain", g::GNNGraph) print(io, "GNNGraph: num_nodes = $(g.num_nodes) num_edges = $(g.num_edges)") - g.num_graphs > 1 && print("\n num_graphs = $(g.num_graphs)") + g.num_graphs > 1 && print(io, "\n num_graphs = $(g.num_graphs)") if !isempty(g.ndata) print(io, "\n ndata:") for k in keys(g.ndata)