浏览代码

changed the doc of Context.getModule() to throw instead of returning null (#9223)

Aleksandr Kuzmenko 5 年之前
父节点
当前提交
fe5c3d1796
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/haxe/macro/Context.hx

+ 1 - 1
std/haxe/macro/Context.hx

@@ -291,7 +291,7 @@ class Context {
 		The resolution follows the usual class path rules where the last
 		declared class path has priority.
 
-		If no module can be found, `null` is returned.
+		If no module can be found, an exception of type `String` is thrown.
 	**/
 	public static function getModule(name:String):Array<Type> {
 		return load("get_module", 1)(name);