Skip to content

Commit e06ebd3

Browse files
committed
Fix code block formatting for usage example in README.md
1 parent 64db7bf commit e06ebd3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ $ env PYTHON_CONFIGURE_OPTS='--enable-shared' pyenv install 3.7.2
4747
Here is a simple example to call Python's `math.sin` function and compare it to
4848
the `Math.sin` in Ruby:
4949

50-
require 'pycall'
51-
math = PyCall.import_module("math")
52-
math.sin(math.pi / 4) - Math.sin(Math::PI / 4) # => 0.0
50+
```ruby
51+
require 'pycall'
52+
math = PyCall.import_module("math")
53+
math.sin(math.pi / 4) - Math.sin(Math::PI / 4) # => 0.0
54+
```
5355

5456
Type conversions from Ruby to Python are automatically performed for numeric,
5557
boolean, string, arrays, and hashes.

0 commit comments

Comments
 (0)