summaryrefslogtreecommitdiffstats
path: root/docs/advanced.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/advanced.md')
-rw-r--r--docs/advanced.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/advanced.md b/docs/advanced.md
index b18be2d..7114857 100644
--- a/docs/advanced.md
+++ b/docs/advanced.md
@@ -157,8 +157,11 @@ that can be used in the predicate assertion macro
example:
```c++
-EXPECT_PRED_FORMAT2(testing::FloatLE, val1, val2);
-EXPECT_PRED_FORMAT2(testing::DoubleLE, val1, val2);
+using ::testing::FloatLE;
+using ::testing::DoubleLE;
+...
+EXPECT_PRED_FORMAT2(FloatLE, val1, val2);
+EXPECT_PRED_FORMAT2(DoubleLE, val1, val2);
```
The above code verifies that `val1` is less than, or approximately equal to,