Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect sample code in documentation (#6796) #6797

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

anoopelias
Copy link
Contributor

Sample code provided in Readme of wasmtime crate specifies three generic arguments for get_typed_func API, while it needs only two. This fixes the sample code by removing the last generic argument.

Fixes #6796

Sample code provided in Readme of `wasmtime` crate specifies three
generic arguments for `get_typed_func` API, while it needs only two.
This fixes the sample code by removing the last generic argument.
@anoopelias anoopelias requested a review from a team as a code owner August 3, 2023 07:04
@anoopelias anoopelias requested review from pchickey and removed request for a team August 3, 2023 07:04
@github-actions github-actions bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Aug 3, 2023
@github-actions
Copy link

github-actions bot commented Aug 3, 2023

Subscribe to Label Action

cc @peterhuene

This issue or pull request has been labeled: "wasmtime:api"

Thus the following users have been cc'd because of the following labels:

  • peterhuene: wasmtime:api

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

Copy link
Contributor

@jameysharp jameysharp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this has been broken since the Wasmtime 4.0.0 release in December. Thank you for fixing it!

@jameysharp jameysharp added this pull request to the merge queue Aug 3, 2023
Merged via the queue into bytecodealliance:main with commit afeee15 Aug 3, 2023
19 checks passed
geekbeast pushed a commit to geekbeast/wasmtime that referenced this pull request Aug 6, 2023
… feature/preview2

* 'feature/preview2' of github.com:geekbeast/wasmtime:
  Change preview2 builder methods to use `&mut self` (bytecodealliance#6770)
  Add a bindgen test that exercises using error types from a different interface (bytecodealliance#6802)
  Resolve trappable error types with fully qualified package paths (bytecodealliance#6795)
  Update the dev-dependency for wit-bindgen to 0.9.0 (bytecodealliance#6800)
  Fix incorrect sample code in documentation (bytecodealliance#6796) (bytecodealliance#6797)
  Update preview1 to trap on misaligned pointers (bytecodealliance#6776)
  Fix posix-signals-on-macos on aarch64-apple-darwin (bytecodealliance#6793)
  consistient WASI preview1 rights reporting (bytecodealliance#6784)
  Wasmtime: Introduce `{Module,Component}::resources_required` (bytecodealliance#6789)
@anoopelias anoopelias deleted the ae/fix-code-in-doc branch August 6, 2023 10:14
eduardomourar pushed a commit to eduardomourar/wasmtime that referenced this pull request Aug 18, 2023
…ytecodealliance#6797)

Sample code provided in Readme of `wasmtime` crate specifies three
generic arguments for `get_typed_func` API, while it needs only two.
This fixes the sample code by removing the last generic argument.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasmtime:api Related to the API of the `wasmtime` crate itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sample code in Readme.md of wasmtime crate is not compiling
2 participants