summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGennadiy Civil <gennadiycivil@users.noreply.github.com>2017-10-30 15:18:33 (GMT)
committerGitHub <noreply@github.com>2017-10-30 15:18:33 (GMT)
commitd175c8bf823e709d570772b038757fadf63bc632 (patch)
tree5e67014c1df5c2eaa411bfb5deb72cfc2eef3e28
parent43d6ad75bc4ffac9aeadc9e32184613cd082d52b (diff)
parent8866af0386d73cddec01918f9448dd8bfebe4452 (diff)
downloadgoogletest-d175c8bf823e709d570772b038757fadf63bc632.zip
googletest-d175c8bf823e709d570772b038757fadf63bc632.tar.gz
googletest-d175c8bf823e709d570772b038757fadf63bc632.tar.bz2
Merge pull request #1313 from aninf-wo/heth/fix-faq-stars-issue-1312
remove markdown stars (bold) from code examples
-rw-r--r--googletest/docs/FAQ.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/googletest/docs/FAQ.md b/googletest/docs/FAQ.md
index c39b625..1a216a1 100644
--- a/googletest/docs/FAQ.md
+++ b/googletest/docs/FAQ.md
@@ -494,7 +494,7 @@ EXPECT_PRED1(IsPositive, 5);
However, this will work:
``` cpp
-EXPECT_PRED1(*static_cast<bool (*)(int)>*(IsPositive), 5);
+EXPECT_PRED1(static_cast<bool (*)(int)>(IsPositive), 5);
```
(The stuff inside the angled brackets for the `static_cast` operator is the
@@ -512,14 +512,14 @@ bool IsNegative(T x) {
you can use it in a predicate assertion like this:
``` cpp
-ASSERT_PRED1(IsNegative*<int>*, -5);
+ASSERT_PRED1(IsNegative<int>, -5);
```
Things are more interesting if your template has more than one parameters. The
following won't compile:
``` cpp
-ASSERT_PRED2(*GreaterThan<int, int>*, 5, 0);
+ASSERT_PRED2(GreaterThan<int, int>, 5, 0);
```
@@ -528,7 +528,7 @@ which is one more than expected. The workaround is to wrap the predicate
function in parentheses:
``` cpp
-ASSERT_PRED2(*(GreaterThan<int, int>)*, 5, 0);
+ASSERT_PRED2((GreaterThan<int, int>), 5, 0);
```