Unverified Commit f28dddd2 authored by Michael Senko's avatar Michael Senko Committed by GitHub
Browse files

Update to example code (#365)

* Update README.md

Use direct cast to double.
parent 64a0eb83
......@@ -122,7 +122,7 @@ Retrieving global values:
```csharp
state.DoString ("y = 10 + x*(5 + 2)");
var y = state ["y"] as double; // Retrieve the value of y
double y = (double) state ["y"]; // Retrieve the value of y
```
Retrieving Lua functions:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment