Skip to content

Commit

Permalink
Merge pull request #223 from ForAeons/reuse-declaration
Browse files Browse the repository at this point in the history
docs: update reuse declaration format
  • Loading branch information
Anant1902 authored Apr 6, 2024
2 parents bf69ba3 + 293a0f4 commit a94b9c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/seedu/address/commons/util/Trie.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public Trie(String... words) {
}
}

//@@author <a href="https://github.com/eugenp/tutorials">eugenp</a>
//@@author eugenp-reused
//Reused from https://www.baeldung.com/trie-java with minor modifications
/**
* Insert a word into the Trie.
Expand All @@ -39,7 +39,7 @@ public void insert(String word) {
}
//@@author

//@@author <a href="https://github.com/eugenp/tutorials">eugenp</a>
//@@author eugenp-reused
//Reused from https://www.baeldung.com/trie-java with minor modifications
/**
* Delete a word from the Trie.
Expand All @@ -51,7 +51,7 @@ public void delete(String word) {
}
//@@author

//@@author <a href="https://github.com/eugenp/tutorials">eugenp</a>
//@@author eugenp-reused
//Reused from https://www.baeldung.com/trie-java with minor modifications
private boolean delete(TrieNode current, String word, int index) {
if (index == word.length()) {
Expand All @@ -78,7 +78,7 @@ private boolean delete(TrieNode current, String word, int index) {
}
//@@author

//@@author <a href="https://github.com/eugenp/tutorials">eugenp</a>
//@@author eugenp-reused
//Reused from https://www.baeldung.com/trie-java with minor modifications
/**
* Search for a word in the Trie.
Expand Down

0 comments on commit a94b9c5

Please sign in to comment.