Skip to content

Commit eba4909

Browse files
authored
Update method_meta.h
1 parent f4b2c1f commit eba4909

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

runtime/executor/method_meta.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ class MethodMeta final {
203203
/**
204204
* Get the backend name at the given index.
205205
*
206-
* @param[in] index The index of the backend name.
207-
* @returns The backend name as a C-style string, or nullptr if the index is
208-
* invalid.
206+
* @param index The index of the backend name.
207+
* @returns A Result wrapping the backend name as a C-style string
208+
* on success, or an error if the index is invalid.
209209
*/
210-
const char* get_backend_name(size_t index) const;
210+
Result<const char*> get_backend_name(size_t index) const;
211211

212212
/**
213213
* Get the number of instructions in this method.

0 commit comments

Comments
 (0)