diff options
| author | Cliff Click <cliffc@acm.org> | 2024-10-21 08:51:07 -0700 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2024-10-21 08:52:01 -0700 |
| commit | 0286fc81d9d7726cd878e9f67ec1c021b9f1e17b (patch) | |
| tree | 371ed28098ad7a4d371cf321c665dfb889561f5e /chapter16/src/test/java/com/seaofnodes | |
| parent | 5059abc385a3cb5aed1f4838b1d5812fea453eec (diff) | |
| download | Simple-0286fc81d9d7726cd878e9f67ec1c021b9f1e17b.tar.gz Simple-0286fc81d9d7726cd878e9f67ec1c021b9f1e17b.zip | |
Minor README comment changes
Diffstat (limited to 'chapter16/src/test/java/com/seaofnodes')
| -rw-r--r-- | chapter16/src/test/java/com/seaofnodes/simple/Chapter16Test.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chapter16/src/test/java/com/seaofnodes/simple/Chapter16Test.java b/chapter16/src/test/java/com/seaofnodes/simple/Chapter16Test.java index c4f9795f..ad287e82 100644 --- a/chapter16/src/test/java/com/seaofnodes/simple/Chapter16Test.java +++ b/chapter16/src/test/java/com/seaofnodes/simple/Chapter16Test.java @@ -179,6 +179,9 @@ return next.i; """ struct Square { flt !side = arg; + // Newtons approximation to the square root, computed in a constructor. + // The actual allocation will copy in this result as the initial + // value for 'diag'. flt diag = arg*arg/2; while( 1 ) { flt next = (side/diag + diag)/2; |
