Skip to content

Commit

Permalink
[Minor][C++] Fix typo: REGULAR_SEPERATOR -> REGULAR_SEPARATOR (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
acezen authored Dec 7, 2023
1 parent dcf4bd6 commit ba1082e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions cpp/include/gar/graph_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class PropertyGroup {
names.push_back(property.name);
property_names_.insert(property.name);
}
prefix_ = util::ConcatStringWithDelimiter(names, REGULAR_SEPERATOR) + "/";
prefix_ = util::ConcatStringWithDelimiter(names, REGULAR_SEPARATOR) + "/";
}
}

Expand Down Expand Up @@ -526,8 +526,8 @@ class EdgeInfo {
version_(version),
prefix_(prefix) {
if (prefix_.empty()) {
prefix_ = src_label_ + REGULAR_SEPERATOR + edge_label_ +
REGULAR_SEPERATOR + dst_label_ + "/"; // default prefix
prefix_ = src_label_ + REGULAR_SEPARATOR + edge_label_ +
REGULAR_SEPARATOR + dst_label_ + "/"; // default prefix
}
}

Expand Down Expand Up @@ -1125,8 +1125,8 @@ class GraphInfo {
* contained.
*/
Status AddEdge(const EdgeInfo& edge_info) noexcept {
std::string key = edge_info.GetSrcLabel() + REGULAR_SEPERATOR +
edge_info.GetEdgeLabel() + REGULAR_SEPERATOR +
std::string key = edge_info.GetSrcLabel() + REGULAR_SEPARATOR +
edge_info.GetEdgeLabel() + REGULAR_SEPARATOR +
edge_info.GetDstLabel();
if (edge2info_.find(key) != edge2info_.end()) {
return Status::Invalid("The edge info of ", key, " is already existed.");
Expand Down Expand Up @@ -1200,8 +1200,8 @@ class GraphInfo {
const std::string& edge_label,
const std::string& dst_label) const
noexcept {
std::string key = src_label + REGULAR_SEPERATOR + edge_label +
REGULAR_SEPERATOR + dst_label;
std::string key = src_label + REGULAR_SEPARATOR + edge_label +
REGULAR_SEPARATOR + dst_label;
if (edge2info_.find(key) == edge2info_.end()) {
return Status::KeyError("The edge info of ", key,
" is not found in graph info.");
Expand Down Expand Up @@ -1237,8 +1237,8 @@ class GraphInfo {
const std::string& src_label, const std::string& edge_label,
const std::string& dst_label, const std::string& property,
AdjListType adj_list_type) const noexcept {
std::string key = src_label + REGULAR_SEPERATOR + edge_label +
REGULAR_SEPERATOR + dst_label;
std::string key = src_label + REGULAR_SEPARATOR + edge_label +
REGULAR_SEPARATOR + dst_label;
if (edge2info_.find(key) == edge2info_.end()) {
return Status::KeyError("The edge info of ", key,
" is not found in graph info.");
Expand Down
2 changes: 1 addition & 1 deletion cpp/include/gar/util/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ limitations under the License.

#include "gar/util/result.h"

#define REGULAR_SEPERATOR "_"
#define REGULAR_SEPARATOR "_"

// forward declarations
namespace arrow {
Expand Down

0 comments on commit ba1082e

Please sign in to comment.