Skip to content

Commit

Permalink
Fix demo code (hardkoded#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok authored Oct 18, 2019
1 parent 32b82a3 commit 786a373
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ using(var page = await browser.NewPageAsync())
```cs
using (var page = await browser.NewPageAsync())
{
var seven = await page.EvaluateFunctionAsync<int>("4 + 3");
var seven = await page.EvaluateExpressionAsync<int>("4 + 3");
var someObject = await page.EvaluateFunctionAsync<dynamic>("(value) => ({a: value})", 5);
Console.WriteLine(someObject.a);
}
Expand Down
2 changes: 1 addition & 1 deletion docfx_project/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ using(var page = await Browser.NewPageAsync())
```cs
using (var page = await Browser.NewPageAsync())
{
var seven = await page.EvaluateFunctionAsync<int>("4 + 3");
var seven = await page.EvaluateExpressionAsync<int>("4 + 3");
var someObject = await page.EvaluateFunctionAsync<dynamic>("(value) => ({a: value})", 5);
Console.WriteLine(someObject.a);
}
Expand Down
2 changes: 1 addition & 1 deletion docfx_project/examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ using(var page = await browser.NewPageAsync())
```cs
using (var page = await browser.NewPageAsync())
{
var seven = await page.EvaluateFunctionAsync<int>("()=> 4 + 3");
var seven = await page.EvaluateExpressionAsync<int>("()=> 4 + 3");
var someObject = await page.EvaluateFunctionAsync<dynamic>("(value) => ({a: value})", 5);
Console.WriteLine(someObject.a);
}
Expand Down

0 comments on commit 786a373

Please sign in to comment.