Merge pull request #1313 from aninf-wo/heth/fix-faq-stars-issue-1312
remove markdown stars (bold) from code examples
This commit is contained in:
		
						commit
						4ebc9034c2
					
				@ -494,7 +494,7 @@ EXPECT_PRED1(IsPositive, 5);
 | 
				
			|||||||
However, this will work:
 | 
					However, this will work:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
``` cpp
 | 
					``` 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
 | 
					(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:
 | 
					you can use it in a predicate assertion like this:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
``` cpp
 | 
					``` cpp
 | 
				
			||||||
ASSERT_PRED1(IsNegative*<int>*, -5);
 | 
					ASSERT_PRED1(IsNegative<int>, -5);
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Things are more interesting if your template has more than one parameters. The
 | 
					Things are more interesting if your template has more than one parameters. The
 | 
				
			||||||
following won't compile:
 | 
					following won't compile:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
``` cpp
 | 
					``` 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:
 | 
					function in parentheses:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
``` cpp
 | 
					``` cpp
 | 
				
			||||||
ASSERT_PRED2(*(GreaterThan<int, int>)*, 5, 0);
 | 
					ASSERT_PRED2((GreaterThan<int, int>), 5, 0);
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user