Skip to content

Commit 93b91bb

Browse files
committed
Adding doc text.
1 parent 805b7cd commit 93b91bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/floats/FloatBuiltins.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ abstract static class NegNode extends PythonUnaryBuiltinNode {
877877
}
878878

879879
@GenerateNodeFactory
880-
@Builtin(name = "real", fixedNumOfArguments = 1, isGetter = true)
880+
@Builtin(name = "real", fixedNumOfArguments = 1, isGetter = true, doc = "the real part of a complex number")
881881
static abstract class RealNode extends PythonBuiltinNode {
882882
@Specialization
883883
float get(float self) {
@@ -901,7 +901,7 @@ PFloat get(PFloat self,
901901
}
902902

903903
@GenerateNodeFactory
904-
@Builtin(name = "imag", fixedNumOfArguments = 1, isGetter = true)
904+
@Builtin(name = "imag", fixedNumOfArguments = 1, isGetter = true, doc = "the imaginary part of a complex number")
905905
static abstract class ImagNode extends PythonBuiltinNode {
906906

907907
@Specialization

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/ints/IntBuiltins.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,7 +1853,7 @@ int bitLength(PInt argument) {
18531853
}
18541854

18551855
@GenerateNodeFactory
1856-
@Builtin(name = "real", fixedNumOfArguments = 1, isGetter = true)
1856+
@Builtin(name = "real", fixedNumOfArguments = 1, isGetter = true, doc = "the real part of a complex number")
18571857
static abstract class RealNode extends PythonBuiltinNode {
18581858
@Specialization
18591859
int get(boolean self) {
@@ -1882,7 +1882,7 @@ PInt get(PInt self,
18821882
}
18831883

18841884
@GenerateNodeFactory
1885-
@Builtin(name = "imag", fixedNumOfArguments = 1, isGetter = true)
1885+
@Builtin(name = "imag", fixedNumOfArguments = 1, isGetter = true, doc = "the imaginary part of a complex number")
18861886
static abstract class ImagNode extends PythonBuiltinNode {
18871887
@Specialization
18881888
int get(@SuppressWarnings("unused") boolean self) {

0 commit comments

Comments
 (0)