Skip to content

Commit

Permalink
One more similar pull request to fix typos (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
MandarJKulkarni authored and foonathan committed Feb 21, 2018
1 parent 847557d commit 4fc976c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example/optional.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ int main()
opt.reset();
ts::visit(visitor{}, opt);

// savely manipulate the value if there is one
// safely manipulate the value if there is one
// with() is an inplace map()
// and thus more efficient if you do not need to change the type
ts::with(opt, [](int& i) {
Expand All @@ -96,7 +96,7 @@ int main()
});

// an optional reference
// basically a pointer, but provides the funcionality of optional
// basically a pointer, but provides the functionality of optional
ts::optional_ref<int> ref;

int a = 42;
Expand Down
4 changes: 2 additions & 2 deletions test_package/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ int main()
opt.reset();
ts::visit(visitor{}, opt);

// savely manipulate the value if there is one
// safely manipulate the value if there is one
// with() is an inplace map()
// and thus more efficient if you do not need to change the type
ts::with(opt, [](int& i) {
Expand All @@ -96,7 +96,7 @@ int main()
});

// an optional reference
// basically a pointer, but provides the funcionality of optional
// basically a pointer, but provides the functionality of optional
ts::optional_ref<int> ref;

int a = 42;
Expand Down

0 comments on commit 4fc976c

Please sign in to comment.