mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-27 20:15:14 +03:00
Fix some syntax highlighting
This commit is contained in:
parent
02abf588d5
commit
7384bd1967
@ -297,7 +297,7 @@ export function greet(a: string): string;
|
|||||||
|
|
||||||
To see what's going on, let's take a look at the generated shim
|
To see what's going on, let's take a look at the generated shim
|
||||||
|
|
||||||
```
|
```js
|
||||||
import * as wasm from './foo_wasm';
|
import * as wasm from './foo_wasm';
|
||||||
|
|
||||||
function passStringToWasm(arg) {
|
function passStringToWasm(arg) {
|
||||||
@ -635,7 +635,7 @@ fn run() {
|
|||||||
Here we're going to do the opposite of the above example and instead import our
|
Here we're going to do the opposite of the above example and instead import our
|
||||||
class and use it from Rust. First up, let's look at the JS:
|
class and use it from Rust. First up, let's look at the JS:
|
||||||
|
|
||||||
```rust
|
```js
|
||||||
import * as wasm from './foo_wasm';
|
import * as wasm from './foo_wasm';
|
||||||
|
|
||||||
import { Bar } from './bar';
|
import { Bar } from './bar';
|
||||||
|
Loading…
Reference in New Issue
Block a user