@@ -40,8 +40,8 @@ impl WasiCtx {
4040
4141 /// @yard
4242 /// Set stdin to read from the specified file.
43- /// @param path [String] The path of the file to read from.
4443 /// @def set_stdin_file(path)
44+ /// @param path [String] The path of the file to read from.
4545 /// @return [WasiCtxBuilder] +self+
4646 fn set_stdin_file ( rb_self : RbSelf , path : RString ) -> RbSelf {
4747 let inner = rb_self. inner . borrow_mut ( ) ;
@@ -52,8 +52,8 @@ impl WasiCtx {
5252
5353 /// @yard
5454 /// Set stdin to the specified String.
55- /// @param content [String]
5655 /// @def set_stdin_string(content)
56+ /// @param content [String]
5757 /// @return [WasiCtx] +self+
5858 fn set_stdin_string ( rb_self : RbSelf , content : RString ) -> RbSelf {
5959 let inner = rb_self. inner . borrow_mut ( ) ;
@@ -66,8 +66,8 @@ impl WasiCtx {
6666 /// @yard
6767 /// Set stdout to write to a file. Will truncate the file if it exists,
6868 /// otherwise try to create it.
69- /// @param path [String] The path of the file to write to.
7069 /// @def set_stdout_file(path)
70+ /// @param path [String] The path of the file to write to.
7171 /// @return [WasiCtx] +self+
7272 fn set_stdout_file ( rb_self : RbSelf , path : RString ) -> RbSelf {
7373 let inner = rb_self. inner . borrow_mut ( ) ;
@@ -80,9 +80,9 @@ impl WasiCtx {
8080 /// Set stdout to write to a string buffer.
8181 /// If the string buffer is frozen, Wasm execution will raise a Wasmtime::Error error.
8282 /// No encoding checks are done on the resulting string, it is the caller's responsibility to ensure the string contains a valid encoding
83+ /// @def set_stdout_buffer(buffer, capacity)
8384 /// @param buffer [String] The string buffer to write to.
8485 /// @param capacity [Integer] The maximum number of bytes that can be written to the output buffer.
85- /// @def set_stout_buffer(buffer, capacity)
8686 /// @return [WasiCtx] +self+
8787 fn set_stdout_buffer ( rb_self : RbSelf , buffer : RString , capacity : usize ) -> RbSelf {
8888 let inner = rb_self. inner . borrow_mut ( ) ;
@@ -94,8 +94,8 @@ impl WasiCtx {
9494 /// @yard
9595 /// Set stderr to write to a file. Will truncate the file if it exists,
9696 /// otherwise try to create it.
97- /// @param path [String] The path of the file to write to.
9897 /// @def set_stderr_file(path)
98+ /// @param path [String] The path of the file to write to.
9999 /// @return [WasiCtx] +self+
100100 fn set_stderr_file ( rb_self : RbSelf , path : RString ) -> RbSelf {
101101 let inner = rb_self. inner . borrow_mut ( ) ;
@@ -108,9 +108,9 @@ impl WasiCtx {
108108 /// Set stderr to write to a string buffer.
109109 /// If the string buffer is frozen, Wasm execution will raise a Wasmtime::Error error.
110110 /// No encoding checks are done on the resulting string, it is the caller's responsibility to ensure the string contains a valid encoding
111+ /// @def set_stderr_buffer(buffer, capacity)
111112 /// @param buffer [String] The string buffer to write to.
112113 /// @param capacity [Integer] The maximum number of bytes that can be written to the output buffer.
113- /// @def set_stout_buffer(buffer, capacity)
114114 /// @return [WasiCtx] +self+
115115 fn set_stderr_buffer ( rb_self : RbSelf , buffer : RString , capacity : usize ) -> RbSelf {
116116 let inner = rb_self. inner . borrow_mut ( ) ;
0 commit comments