Skip to content

Commit

Permalink
fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SleepiCaffeine authored Jun 19, 2023
1 parent 6d7c463 commit 339da37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int main() {
node<int>* my_node = new node<int>(10); // Creates a node with value 10, and points to nothing
auto my_other_node = new node<int>(20); // Creates a node with value 20, and points to nothing
my_node->set_next(my_other_node); // Now `myNode` points to `myOtherNode`
my_node->set_next(my_other_node); // Now `my_node` points to `my_other_node`
std::cout << my_node->get_next()->get_data() << "\n"; // Output is 20
auto copy_node = node<int>(*my_node);
Expand Down

0 comments on commit 339da37

Please sign in to comment.